how to find threshold
5 次查看(过去 30 天)
显示 更早的评论
I have calculated the variance of an image.now i need to classify the pixels as foreground when the variance is more than a threshold ,otherwise it is classified as background pixel.how to select this threshold
0 个评论
采纳的回答
Image Analyst
2013-11-10
编辑:Image Analyst
2013-11-10
It doesn't make sense to do what you said globally - just think about it.
There are several ways to do it locally adaptive: blockproc(), stdfilt(), nlfilter(), nested for loops, etc.
I show two of these in the demo attached below.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!