regionprops and standard deviation (binary image)
Show older comments
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
Accepted Answer
More Answers (1)
Image Analyst
on 30 Jan 2018
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)))
1 Comment
marie semaan
on 31 Jan 2018
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!