How I can change the certain pixel values in gray scale image?
Mostrar comentarios más antiguos
%I have gray image X having values between 0 and 0 to 1, I want to change the values of certain pixel to 1 that are closer to 1 and want to change values to 0 that are near to 0. Can anyone write a code for that as I am new to matlab. Thanks
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 26 de Oct. de 2012
Well, you shouldn't have accepted that answer so quickly if it didn't do what you asked. Here's how to " change the values of certain pixel to 1 that are closer to 1 and want to change values to 0 that are near to 0":
yourImage = yourImage >= 0.5;
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!