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
  1 件のコメント
jayamala pakhare
jayamala pakhare 2018 年 5 月 8 日
I = imread(imahes(i).name) ; change to I = imread(images(i).name) ; thanks it is working

サインインしてコメントする。


Image Analyst
Image Analyst 2018 年 5 月 8 日

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by