Is there a a function/code which can make the darker bits darker and the lighter bits lighter?
Afficher commentaires plus anciens

just a random image I found on google. Is it possible to make the black parts (crack) darker and the background (concrete) lighter?
Réponses (3)
Matz Johansson Bergström
le 21 Août 2014
0 votes
If you have the image processing toolbox you can use imcontrast. http://www.mathworks.se/help/images/ref/imcontrast.html
Iain
le 21 Août 2014
0 votes
Yup.
Calculate the difference from the image's mid level (128 probably, but this depends on how you're dealing with the image), and multiply it by a number greater than 1. Add that difference back to the mid level.
Image Analyst
le 22 Août 2014
0 votes
You can use imadjust() or just pass in the range you want to see into imshow().
Catégories
En savoir plus sur Display 2-D Images dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!