xeucn

PURPOSE ^

n-dimensional euclidean distance between each window in A and template T.

SYNOPSIS ^

function C = xeucn( A, T, shape )

DESCRIPTION ^

 n-dimensional euclidean distance between each window in A and template T.

 Similar to normxcorrn, except at each point (i,j) calculates the
 euclidean distance between the T and the window in A surrounding the
 point, storing the result in C(i,j).

 USAGE
  C = xeucn( A, T, [shape] )

 INPUTS
  A           - first d-dimensional matrix
  T           - second d-dimensional matrix
  shape       - ['full'] 'valid', or 'same' (see convn)

 OUTPUTS
  C           - correlation matrix

 EXAMPLE
  T=gaussSmooth(rand(20),2); A=repmat(T,[3 3]);
  C1=normxcorrn(T,A);  C2=xcorrn(A,T);  C3=xeucn(A,T);
  figure(1); im(C1);  figure(2); im(C2);  figure(3); im(-C3);

 See also XCORRN, CONVNFAST

 Piotr's Computer Vision Matlab Toolbox      Version 2.0
 Copyright 2014 Piotr Dollar.  [pdollar-at-gmail.com]
 Licensed under the Simplified BSD License [see external/bsd.txt]

Generated by m2html © 2003