How to read images from the folder and select region of interest (rectangular) once
조회 수: 1 (최근 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!