regionpropsで取得したAreaの最大値抽出について
古いコメントを表示
regionprops関数で取得したAreaの最大値(連結ピクセル数)を抽出したいのですが、以下のようなエラーが出て解決策がわからず困っています。
I = imread('image.bmp');
bw = imbinarize(I);
CC = bwconncomp(bw,4);
CCpixels = regionprops(CC,'Area');
A = max(CCpixels.Area);
エラー: max
2 つの入力配列が指定されている場合、次元の引数はサポートされません。
宜しくお願い致します。
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で イメージ算術 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!