srcFiles = dir('C:\Users\sony\Desktop\matlabprog\ORL Face Database\s1\*.pgm'); for i = 1 : 10 filename = strcat('C:\Users\sony\Desktop\matlabprog\ORL Face Database\s1\',srcFiles(i).name); if exist(filename, 'file') == 0 continue end Image = imread(filename); Img = im2bw(Image); figure(),imshow(Img); end
MATLAB: How to read multiple image from a folder and create histogram for each image and save them ?
create histogram for each image
Related Question
- How to calculate and plot the histogram of DCT coefficients of an image
- How to read and display multiple images from folder
- How to change color output of imhist function
- How to input the image as input to the GUI.
- How to plot histogram of multiple images in a for loop and save them in different figures
- How do i display the total number of images
Best Answer