I have extratced some features from medical images which I have segmented the preferred ROI and divided into four quadrants. Thus each image is having four quadrants and I have extraced all of six features from each of these quadrant image. Can you help me how to automize this code to save the extracted features i a single excel .xlsx file? Thanks in advance.
Here is my code;
%Load the current directoryMyFolder = 'C:\Users\User\Documents\MATLAB\CXR Images\Local DB\NHRD_IMAGES';% Get the list of all images in the folder with the desired file name patternFilePattern = fullfile (MyFolder, 'NHIMG-*.jpg');TheFiles = dir (FilePattern);for k = 1 : length(TheFiles)BasefileName = TheFiles (k).name;FullFileName = fullfile (MyFolder, BasefileName);fprintf (1, 'Now reading %s\n', FullFileName);% Read in the CXR imagesI= imread (FullFileName); % Segmentation of the lung field from the CXR image[S] = LungMask(I); % Dividing Segmented lung image into quadrants[RUQ, LUQ, RLQ, LLQ] = crop(S); % Extracting Features from each quadrant of the segmented images [Stats, MaxProb, Entropy] = Prop(RUQ);[Stats, MaxProb, Entropy] = Prop(LUQ);[Stats, MaxProb, Entropy] = Prop(RLQ);[Stats, MaxProb, Entropy] = Prop(LLQ);end
Best Answer