Normalized n-dimensional cross-correlation. For 2 dimensional inputs this function is exactly the same as normxcorr2, but also works in higher dimensions. For more information see help on normxcorr2.m. Also see Forsyth & Ponce 11.3.1 (p241). INPUTS: T - template to correlate to each window in A, must be smaller than A A - matrix to correlate T to shape - [optional] 'valid', 'full', or 'same', see convn_fast help OUTPUTS C - correlation matrix EXAMPLE T = filter_gauss_nD( [21 21], [], [], 0 )*100; A = rand(100); C1=normxcorrn(T,A); C2=normxcorr2(T,A); C3=xcorr2(A,T); C4=xcorrn(A,T); C4r = rot90( xcorrn(T,A),2 ); C5=xeucn(A,T); C5r = rot90( xeucn(T,A), 2 ); show=1; figure(show); show=show+1; im(C1); title('normxcorrn'); figure(show); show=show+1; im(C2); title('normxcorr2'); figure(show); show=show+1; im(C3); title('xcorr2'); figure(show); show=show+1; im(C4); title('xcorrn'); figure(show); show=show+1; im(C4r); title('xcorrn rev&rot'); figure(show); show=show+1; im(-C5); title('xeucn'); figure(show); show=show+1; im(-C5r); title('xeucn rev&rot'); DATESTAMP 29-Sep-2005 2:00pm See also NORMXCORRN_FG, XEUCN, XCORRN