How to read images from the folder and select region of interest (rectangular) once
2 次查看(过去 30 天)
显示 更早的评论
1) read all images from a folder
2) only need to select region of interest once then it will apply to all images
0 个评论
回答(1 个)
Akshay Malav
2019-6-21
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!