read all images from subfolders

3 ビュー (過去 30 日間)
fereshte
fereshte 2014 年 5 月 21 日
コメント済み: fereshte 2014 年 5 月 24 日
hi.i have a folder with subfolders that each folder contains ten folder and these folders have 4 image files. how can resize all images with matlab code?

回答 (1 件)

Image Analyst
Image Analyst 2014 年 5 月 21 日
Combine the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F with imresize() and you can do it. Create two filenames with sprintf() and fullfile(). Call imread() then imresize() then imwrite(). If you cannot do that, then post your code for us to fix.
  12 件のコメント
Image Analyst
Image Analyst 2014 年 5 月 24 日
Well figure it out. Step through one line at a time until you see the value of it vanish. See http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/
In the meantime, I attach a program to recurse into subfolders getting image names.
fereshte
fereshte 2014 年 5 月 24 日
ok.thanks a lot

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by