how can i calculate a variance of each BLOB in image

4 ビュー (過去 30 日間)
bay rem
bay rem 2016 年 1 月 20 日
編集済み: Image Analyst 2016 年 1 月 20 日
hello every one; i need to know how to calculate a variance of each blob contains in one image, thank you in advance

採用された回答

Image Analyst
Image Analyst 2016 年 1 月 20 日
編集済み: Image Analyst 2016 年 1 月 20 日
Ask regionprops to return PixelValues for the blobs.
measurements = regionprops(labeledImage, 'PixelValues');
Then for the kth blob:
blobVariance(k) = var(measurements(k).PixelValues);

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by