regionprops and standard deviation (binary image)
显示 更早的评论
Hi everyone, i am using the function" regionprops" to get the largest perimeter in my binary image. I have got the value of the largest perimeter but still need to have its standard deviation. Does anyone know how to get this std? Thank you very much
采纳的回答
更多回答(1 个)
Image Analyst
2018-1-30
You can get the standard deviation of the gray levels in the blob with the largest perimeter more directly (than by using PixelIdxList) like this:
% Get blob with largest perimeter.
binaryImage = bwpropfilt(binaryImage, 'Perimeter', 1);
% Get standard deviation of pixels in that blob
stdGrayLevels = std(double(grayImage(binaryImage)))
类别
在 帮助中心 和 File Exchange 中查找有关 Region and Image Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!