Generalized Normalized Cross Correlation

Computes the correct NCC at all locations regardless of the relative size of A and TEMPLATE

Download
Download

You are now following this Submission

Cite As

Dirk Padfield (2026). Generalized Normalized Cross Correlation (https://nl.mathworks.com/matlabcentral/fileexchange/29005-generalized-normalized-cross-correlation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0

Made the code independent of the image processing toolbox (IPT). Note that the IPT is needed to run the example since normxcorr2 is part of that toolbox. However, normxcorr2_general does not require the IPT.

Download
1.2.0

Added a new optional parameter. requiredNumberOfOverlapPixels sets to 0 all locations in C computed from positions where A and T overlap less than requiredNumberOfOverlapPixels.

Download
1.0.0

Download