#include <vcl_vector.h>
#include <mvl/HomgPoint2D.h>
#include <mvl/FMatrix.h>
#include <mvl/PairMatchSetCorner.h>
Go to the source code of this file.
Functions | |
vcl_vector< int > | Monte_Carlo (vcl_vector< HomgPoint2D > points, vcl_vector< int > index, int buckets, int samples) |
Randomly select samples points from the screen size of row_size & col_size bucketed symmetrically with buckets partitions on the area. | |
HomgPoint2D | Taubins_MLE (HomgPoint2D x1, HomgPoint2D x2, FMatrix *F) |
double | Sampsons_MLE (HomgPoint2D x1, HomgPoint2D x2, FMatrix *F) |
vcl_vector<int> Monte_Carlo | ( | vcl_vector< HomgPoint2D > | points, |
vcl_vector< int > | index, | ||
int | buckets, | ||
int | samples | ||
) |
Randomly select samples points from the screen size of row_size & col_size bucketed symmetrically with buckets partitions on the area.
Note that no two selected points can lie in the same bucketed partition.
Watch this routine, if the given points are not dispersed uniformly enough across the given distribution then the routine will not exit, rather keep searching for the requested number of subsamples.
Fixed => RESCALE ALL THE POINTS TO FIT -1,1(x) -1,1(y) IT IS SUPPOSED THAT THE CENTER OF THE POINTS IS (0,0)
Definition at line 30 of file Probability.cxx.
double Sampsons_MLE | ( | HomgPoint2D | x1, |
HomgPoint2D | x2, | ||
FMatrix * | F | ||
) |
Definition at line 202 of file Probability.cxx.
HomgPoint2D Taubins_MLE | ( | HomgPoint2D | x1, |
HomgPoint2D | x2, | ||
FMatrix * | F | ||
) |