How to map the lowest 15 grayscale levels to 15 and highest 15 grayscale values to 240 in a 256*256 image?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
chaitanya g p
le 30 Mar 2016
Réponse apportée : Image Analyst
le 30 Mar 2016
i am working on IWT and i am losing the extremes of data when i apply transforms. i went through some documentation and found a histogram mod is needed. can someone please help me with the code and documention? thanks in advance
0 commentaires
Réponse acceptée
Image Analyst
le 30 Mar 2016
Try this:
grayImage(grayImage < 15) = 15; % Everything 14 and less becomes 15.
grayImage(grayImage > 240) = 240; % Everything 241 and higher becomes 240.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Histograms 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!