Binarize image with threshold
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
Using Mathematica I was able to binarize a image with the following command
a1=Binarize[a,0.7]
Does anyone know how i would apply the same threshold of 0.7 using Matlab?
Thanks in advance,
Syed
0 commentaires
Réponse acceptée
Image Analyst
le 9 Sep 2013
You can use graythresh() and bwthresh() which use 0-1, but I think it's simpler to just do
binaryImage = grayImage < grayLevelThreshold;
where grayLevelThreshold is just the regular threshold (0-255 or 0-65535) rather than anormalized number in the range 0-1.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!