フィルターのクリア

Read some images from one folder contain on many images

2 ビュー (過去 30 日間)
Ali Noori
Ali Noori 2015 年 1 月 5 日
回答済み: Stephen23 2015 年 1 月 5 日
Hi, I have folder "new images" contain on 50 images such as (P1.png, P2.png, P3.png,.......,P50.png). I'd like to process (im2bw for example) on some of them like (P1.png, P5.png, P13.png, P20.png, P21.png, P30.png, P33.png, P40.png & P48.png). Can you please help me to make a code. Regards

採用された回答

Stephen23
Stephen23 2015 年 1 月 5 日
The MATLAB wiki covers this, and explains it quite well:

その他の回答 (1 件)

Rick Rosson
Rick Rosson 2015 年 1 月 5 日
編集済み: Rick Rosson 2015 年 1 月 5 日
for k = [ 1 5 13 20 21 30 33 40 48 ]
filename = sprintf('P%i.png',k);
X = imread(filename);
Y = im2bw(X);
...
...
end

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by