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

 Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Nov. 2013
Bearbeitet: Image Analyst am 10 Nov. 2013

0 Stimmen

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.

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by