MATLAB Answers

hp
0

how to extract and store features which are stored in an excel sheet into mat file?

Asked by hp
on 13 Feb 2018
I have stored GLCM features(for folder of images) into an excel sheet.. how to extract excel sheet features into a mat file?here is my code... for i = 1:num_pages
fprintf('Processing page No: %d\n', i);
% load the image from the directory
I = double(rgb2gray(imresize((imread(strcat(dir_in,file_names{i}))),[256 256])))
gf=graycomatrix(I);
glcm=graycoprops(gf);
Features=zeros(1,4);
Features(1,:)=struct2array(glcm);
filename='G:\matlab2013\Crack\bin\CODES\Features.xlsx';
xlswrite(filename, Features(1,:),'sheet1',['A' num2str(i) ':' 'D' num2str(i)])

  0 Comments

Sign in to comment.

0 Answers