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

 채택된 답변

Image Analyst
Image Analyst 2013년 11월 10일
편집: Image Analyst 2013년 11월 10일

0 개 추천

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.

댓글 수: 1

Sapam Jaya
Sapam Jaya 2013년 11월 12일
it must b local variance..thnx a lot

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

질문:

2013년 11월 10일

댓글:

2013년 11월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by