Making some intensity values of image to zero

10 views (last 30 days)
hi..
How to zero the unwanted pixel intensity values of a image to zero.

Accepted Answer

Stephen
Stephen on 24 May 2012
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
  1 Comment
Walter Roberson
Walter Roberson on 24 May 2012
The reverse, values less than the threshold are the ones to be set to 0 apparently.

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 23 May 2012
... Assign 0 to those matrix locations ?
Is there more to this question, such as automatically determining which pixels have "unwanted pixel intensity values" ?
  1 Comment
Gova ReDDy
Gova ReDDy on 24 May 2012
Yeah,I'm planning to give some threshold like pixel intensity values less than 30 should be equal to zero in the image.

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!