Code covered by the BSD License  

Highlights from
Image correspondences using cross-correlation

image thumbnail

Image correspondences using cross-correlation

by

 

16 Apr 2010 (Updated )

Find matching features in pairs of images using normalised cross-correlation: class file and demo.

max2(x)
function [y,r,c] = max2(x)
%MAX2  Find maximum of 2-D array
%   [Y,R,C] = MAX2(X) returns the value, row and column of a maximal
%   element of X.

[colmxs, rs] = max(x,[],1);  % Need to specify first dim
[y, c] = max(colmxs);
r = rs(c);

end

Contact us