フィルターのクリア

On using 'regionprops'?

1 回表示 (過去 30 日間)
Deepak Sivadas
Deepak Sivadas 2018 年 11 月 21 日
回答済み: Image Analyst 2018 年 11 月 21 日
Hi,
Stats = regionprops(L,'all');
for instance, L is a labelled binary image of 256x256.
What determines the size of Stats ? Pls respond.
Thanks,
Deepak

採用された回答

Image Analyst
Image Analyst 2018 年 11 月 21 日
The length of the stats structure is the same as the number of blobs in your image.
[L, numberOfBlobs] = bwlabel(binaryImage);
stats = regionprops(L, 'All');
fprintf('There are %d blobs in the labeled image.\n', numberOfBlobs);
fprintf('There are structures, in the stats structure array.\n', length(stats));
You can see that length(stats) will be the same as numberOfBlobs.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by