I need to find the percentage of white region in a segmented image
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I am segmenting an image using multiple segmentation methods. However for some images the segmentation just gives a white region. In order to solve that I need to find the percentage of the white region in that segmented image so that I can discard that segmentation function and use some other function. I am attaching the code below , kindly help me out with this.
The code incudes an objective function which takes an image with its ground truth image. The image is segmented using multiple methods and in the end the best segmentation method is picked. I am attaching the result of this which is just a white segmented image. The objective function needs to discard the image which has 95% of the white region and then use some other method.
0 Commenti
Risposte (1)
Image Analyst
il 8 Giu 2022
To find the percentage of "white" in a segmented image you can do
whitePercentage = 100 * nnz(binaryImage) / numel(binaryImage)
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!