Description |
%%
This simple code computes the Hausdorff distance between two point clouds.
% Let A and B be subsets of a metric space (Z,dZ),
% The Hausdorff distance between A and B, denoted by dH (A, B), is defined by:
% dH (A, B)=max{sup dz(a,B), sup dz(b,A)}, for all a in A, b in B,
% dH(A, B) = max(h(A, B),h(B, A)),
% where h(A, B) = max(min(d(a, b))),
% and d(a, b) is a L2 norm.
% dist_H = hausdorff( A, B )
% A: First point sets.
% B: Second point sets.
% ** A and B may have different number of rows, but must have the same number of columns. **
% Hassan RADVAR-ESFAHLAN; Université du Québec; ÉTS; Montréal; CANADA
% 15.06.2010
%% |