a folder have 30 images (.jpg), i have to index it and read the image one after another for further processing.how to index it and read it?

1 次查看(过去 30 天)
reading image one after another

回答(2 个)

KSSV
KSSV 2018-5-8
images = dir('*.jpg') ; % you are in the folder of images
N = length(images) ; % Total number of images
% loop fo reach image
for i = 1:N
I = imread(imahes(i).name) ;
% do what you want
end

Image Analyst
Image Analyst 2018-5-8

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by