Double Thresholding

6 次查看(过去 30 天)
Tomas
Tomas 2012-5-9
HI, Can someone show me an example how to apply double thresholding method, were you get to choose T1 and T2 values... ?
  1 个评论
Sean de Wolski
Sean de Wolski 2012-5-9
Show us an example of what you want. You may just answer your own question trying to explain it in type.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2012-5-9
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 个评论
Walter Roberson
Walter Roberson 2012-5-9
NewImage = uint8(YourImage >= T1 & YourImage <= T2);
However you may wish to consider instead
NewImage = uint8(255 * (YourImage >= T1 & YourImage <= T2));
Tomas
Tomas 2012-5-9
You are a life saver !
Second one worked, first returned black image..

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by