MATLAB: Making some intensity values of image to zero

image processingMATLAB

hi..
How to zero the unwanted pixel intensity values of a image to zero.

Best Answer

if your image is 'a', try
a(a>threshold)=0;
or try
max(a,threshold);
which makes the values equal to your threshold. maybe it is useful