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 で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!