Double Thresholding
6 views (last 30 days)
Show older comments
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
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.
Accepted Answer
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
on 9 May 2012
NewImage = uint8(YourImage >= T1 & YourImage <= T2);
However you may wish to consider instead
NewImage = uint8(255 * (YourImage >= T1 & YourImage <= T2));
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!