regionpropsで取得したAreaの最大値抽出について
Mostrar comentarios más antiguos
regionprops関数で取得したAreaの最大値(連結ピクセル数)を抽出したいのですが、以下のようなエラーが出て解決策がわからず困っています。
I = imread('image.bmp');
bw = imbinarize(I);
CC = bwconncomp(bw,4);
CCpixels = regionprops(CC,'Area');
A = max(CCpixels.Area);
エラー: max
2 つの入力配列が指定されている場合、次元の引数はサポートされません。
宜しくお願い致します。
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre イメージ算術 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!