how to get binary image from histogram?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I'm new to matlab. Some on please help me to obtain binary segmentation form histogram.
thank you
0 Commenti
Risposte (1)
Image Analyst
il 13 Mar 2014
You pick a threshold and then do
binaryImage = grayImage < thresholdValue;
if you want any more advice, post an image and say what you want to find or measure. The threshold can be chosen form the histogram, for example from my interactive thresholding application: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
4 Commenti
Image Analyst
il 14 Mar 2014
[pixelCounts, grayLevels] = imhist(grayImage, 256);
binaryImage = grayImage < 128;
Do the above thresholding for each color channel and then AND the 3 binary images to get the overall binary image for the color image.
Vedere anche
Categorie
Scopri di più su Histograms in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!