myFolder = 'C:\Users\Sana\Desktop\DermoscopyImages'; if ~isdir(myFolder) errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder); uiwait(warndlg(errorMessage)); return; end filePattern = fullfile(myFolder, '*.bmp'); bmpFiles = dir(filePattern); immat=zeros(437580,200); for k = 1:length(bmpFiles) baseFileName = bmpFiles(k).name; fullFileName = fullfile(myFolder, baseFileName); fprintf(1, 'Now reading %s\n', fullFileName); imageArray = rgb2gray(imread(fullFileName)); %Read image and convert to Gray imtovector=double(imageArray(:)); %convert 2D image into 1D vector immat(437580,k)=imtovector %Store image vectors into matrix imshow(imageArray); % Display image. drawnow; % Force display to update immediately. end
Any sort of help in this regard would be highly appreciated. Thanks in advance
You may run out of memory. Why do you think you need to do this? You may not have to. You may be able to just read in and process one image at a time.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.