Bsoft function
markers_findOneToOne
Source:
src/util/marker.c
Author:
Samuel Payne
Description:
Finds a one to one mapping of two coordinate sets. The sets should
have a large intersection to begin with.
Algorithm:
To get a rough matching, we attempt to match every point in B with
a point in A. (Looping through a few points in A as well.) The
transformation parameters are recorded for the rough match with
the lowest error. Finally it goes through an exaustive brute force
matching with the estimates of the transform parameters and
produces the one to one mapping. It rewrites the point* sets so
that the matching points have the same index.
(set1[0] matches set2[0], set1[1] matches set2[1], ...)
Arguments:
| Bmarker* refset | coordinate set serving as reference
|
| Bmarker* applyset | coordinate set to be matched to refset
|
Returns:
int matched_pairs the number of points in the 1 to 1 mapping
Prototype:
int markers_findOneToOne(Bmarker* refset, Bmarker* applyset)
Functions used:
bcos
bfree
block_delete
bsin
copy_item
copy_list
count_list
get_float
Other objects included:
struct Bcomponent
struct Blink
struct Bmarker
struct Bmodel
Generated by bdoc.pl on Thu Dec 16 10:52:17 2010
Back to the Bsoft home