How can i save the features of multiple images into a single mattrix (.mat file)?
5 views (last 30 days)
i want to save : Each rows containing each image features. Following is my syntax for the training section.
srcFiles = dir('E:\M\*.jpg');
for i = 1 : 8
filename = strcat('E:\Ms\',srcFiles(i).name);
TrainNormal = [Contrast,Correlation,Energy,Homogeneity, Mean, Entropy, RMS, Variance, Smoothness, Skewness, IDM];
Image Analyst on 18 Mar 2017
You might want to make TrainNormal a 2-D vector. Before the loop
TrainNormal = zeros(8, 11);
then in the loop, assign the 11 values to a single row.
TrainNormal(i, :) = [Contrast,Correlation,Energy,Homogeneity, Mean, Entropy, RMS, Variance, Smoothness, Skewness, IDM];
then after the loop, save the variable to a .mat file: