regionpropsで取得したAreaの最大値抽出について
Afficher commentaires plus anciens
regionprops関数で取得したAreaの最大値(連結ピクセル数)を抽出したいのですが、以下のようなエラーが出て解決策がわからず困っています。
I = imread('image.bmp');
bw = imbinarize(I);
CC = bwconncomp(bw,4);
CCpixels = regionprops(CC,'Area');
A = max(CCpixels.Area);
エラー: max
2 つの入力配列が指定されている場合、次元の引数はサポートされません。
宜しくお願い致します。
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur イメージ算術 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!