how should i compress the some multiple images by 1st converting to them gray scale and all images are supposed to be of same size.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
archana
am 6 Mär. 2014
Kommentiert: Image Analyst
am 7 Mär. 2014
how should i compress the some multiple images by 1st converting to them gray scale and all images are supposed to be of same size. here i tried to read 100s of images now i want to convert them to gray scale and then i supposed to compress them to make them of same dimensions...
myFolder = 'C:\Users\shree\Desktop\final data\1'; if ~isdir(myFolder) errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder); uiwait(warndlg(errorMessage)); return; end filePattern = fullfile(myFolder, '*.jpg'); jpegFiles = dir(filePattern); for k = 1:length(jpegFiles) baseFileName = jpegFiles(k).name; fullFileName = fullfile(myFolder, baseFileName); %fprintf(1, 'Now reading %s\n', fullFileName); imageArray = imread(fullFileName); imshow(imageArray); % Display image. drawnow; % Force display to update immediately. end
apologize me for any mistakes.... Regards,,,
1 Kommentar
Image Analyst
am 7 Mär. 2014
Please read this: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup and fix your post.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!