複数枚の画像をfor文を使って処理したいです
古いコメントを表示
複数枚の画像(ファイルにある全ての画像)をfor文を使って処理がしたいです.
以下のような処理をしましたが,画像ファイルを指定できていないので,エラーが出ます.
for n = 1:100
I = imshow('n.jpg');
[nrows,ncols] = size(get(I,'CData'));
xdata = get(I,'XData');
xlength = xdata(1,2)
ylength = ydata(1,2)
pixcelsize =xlength *ylength
end
採用された回答
その他の回答 (1 件)
Waon Haraguchi
2019 年 5 月 30 日
0 投票
1 件のコメント
Kenta
2019 年 5 月 30 日
はい、お役にたてたようでうれしいです。また、何かございましたらご連絡ください。
カテゴリ
ヘルプ センター および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!