regionprops and standard deviation (binary image)
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Image Analyst
il 30 Gen 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 Commento
marie semaan
il 31 Gen 2018
Categorie
Scopri di più su Region and Image Properties in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!