I'm trying to use MKL to do NCC in order to find a pattern in a whole image.
It seems that vsldCorrExecX only can do correlation but not NCC.
pattern = [1 2;
image = [1 2;
We expect to get 0.9762 for sum((pattern-mean(pattern)).*(image-mean(image)))/sqrt((pattern-mean(pattern))^2*(image-mean(image))^2).
However, we actually get sum(pattern.*image) = 44.
Is there any way to do NCC directly?