M-File Help: boundmatch View code for boundmatch

boundmatch

Match boundary profiles

x = boundmatch(R1, r2) is the correlation of the two boundary profiles R1 and r2. Each is an Nx1 vector of distances from the centroid of an object to points on its perimeter at equal angular increments spanning 2pi radians. x is also Nx1 and is a correlation whose peak indicates the relative orientation of one profile with respect to the other.

[x,s] = boundmatch(R1, r2) as above but also returns the relative scale s which is the size of object 2 with respect to object 1.

Notes

See also

RegionFeature.boundary, xcorr


 

© 1990-2012 Peter Corke.