Double Thresholding

6 views (last 30 days)
Tomas
Tomas on 9 May 2012
HI, Can someone show me an example how to apply double thresholding method, were you get to choose T1 and T2 values... ?
  1 Comment
Sean de Wolski
Sean de Wolski on 9 May 2012
Show us an example of what you want. You may just answer your own question trying to explain it in type.

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 9 May 2012
There are multiple meanings of "thresholding" that might be appropriate.
One meaning:
NewImage = YourImage >= T1 & YourImage <= T2;
Another:
NewImage = YourImage .* (YourImage >= T1 & YourImage <= T2);
  3 Comments
Walter Roberson
Walter Roberson on 9 May 2012
NewImage = uint8(YourImage >= T1 & YourImage <= T2);
However you may wish to consider instead
NewImage = uint8(255 * (YourImage >= T1 & YourImage <= T2));
Tomas
Tomas on 9 May 2012
You are a life saver !
Second one worked, first returned black image..

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!