MATLAB: Change Pixel intensity value

image analysisimage processing

Hi all,
I have an image(gray scale) whose pixel intensity values ranges from -0.5373 to 0.4744. I would like to change the intensity value which is lesser than 0 to 0. Can any one help me to solve this.
Thanks.

Best Answer

Say your image is x,
x(x<0) = 0;