How to calculate the ZNCC threshold?

7 views (last 30 days)
remos remos
remos remos on 1 Aug 2015
Answered: Image Analyst on 1 Aug 2015
I'd like to know how to fix the threshold of ZNCC method and how it is calculated? paper in this field will be desirable
thank you in advance
  4 Comments
remos remos
remos remos on 1 Aug 2015
This is an image matching method I want to know how to calculate the threshold to say that points are matched the interval results thank you
remos remos
remos remos on 1 Aug 2015
thank you Roger Stafford

Sign in to comment.

Answers (2)

Roger Stafford
Roger Stafford on 1 Aug 2015
This paper gives a method of computation:
http://vision.deis.unibo.it/fede/papers/iciar04.pdf
As for choosing a threshold, it is not computed but is something that a user must choose based on comparison with samples that are to be considered alike and those considered different. The ZNCC value lies between -1 and +1. The closer to +1 the greater the similarity.
  3 Comments
Roger Stafford
Roger Stafford on 1 Aug 2015
Choosing an appropriate threshold value is something that depends on a number of variables: 1) the nature of the imaging system, 2) the typical variations in the scene to be viewed that are to be disregarded versus those of significance, and 3) the degree of certainly the user wishes to have so as not to miss a significant event versus the expense of responding to non-significant events. I see no way of choosing such threshold values that does not involve a careful consideration and experimentation by the user rather than some automatic computation. Would you trust such an automatic method, Remos?
remos remos
remos remos on 1 Aug 2015
so no means for the choice of the threshold. experimentation is the only way thank you my friend for these kind explanations

Sign in to comment.


Image Analyst
Image Analyst on 1 Aug 2015
normxcorr2() may do what you want. It normalizes to zero mean and unit standard deviation. See the definition at https://en.wikipedia.org/wiki/Cross-correlation#Normalized_cross-correlation and see if that will work for you.
What do you need to do, and why do you think you need this specialized version of the normalized cross correlation instead of the regular one? Show us your image and template and show us how normxcorr2() fails on your images so we can help you further.

Community Treasure Hunt

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

Start Hunting!