#include "Probability.h"
#include <vcl_cstdlib.h>
#include <vcl_vector.h>
#include <vcl_iostream.h>
#include <vcl_cassert.h>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_diag_matrix.h>
#include <vnl/vnl_math.h>
#include <mvl/HomgPoint2D.h>
#include <mvl/FMatrix.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. | |
double | Sampsons_MLE (HomgPoint2D x1, HomgPoint2D x2, FMatrix *F) |
Definition in file Probability.cxx.
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.