How to read images from the folder and select region of interest (rectangular) once
1 view (last 30 days)
Show older comments
1) read all images from a folder
2) only need to select region of interest once then it will apply to all images
0 Comments
Answers (1)
Akshay Malav
on 21 Jun 2019
1) I am attaching a self explanatory code
% Get list of all jpg files in this directory
imagefiles = dir('*.jpg');
nfiles = length(imagefiles); % Number of files in the folder
for i=1:nfiles
currentfilename = imagefiles(i).name;
currentimage = imread(currentfilename);
images{i} = currentimage;
end
0 Comments
See Also
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!