#include <FMPlanarComputeNonLinear.h>
Public Member Functions | |
FMPlanarComputeNonLinear (const ImageMetric *, const ImageMetric *, double outlier_threshold=0) | |
Constructor. | |
bool | compute_planar (vcl_vector< vgl_homg_point_2d< double > > &points1, vcl_vector< vgl_homg_point_2d< double > > &points2, FMatrixPlanar &F) |
Compute from given pair of vcl_vector<vgl_homg_point_2d<double> >. | |
bool | compute_planar (PairMatchSetCorner &matches, FMatrixPlanar *F) |
Compute from given PairMatchSetCorner. | |
bool | compute_planar (vcl_vector< HomgPoint2D > &points1, vcl_vector< HomgPoint2D > &points2, FMatrixPlanar *F) |
Compute from given pair of vcl_vector<HomgPoint2D>. | |
bool | compute (vcl_vector< vgl_homg_point_2d< double > > &points1, vcl_vector< vgl_homg_point_2d< double > > &points2, FMatrix &F) |
bool | compute (PairMatchSetCorner &matches, FMatrix *F) |
This is the virtual compute interface. | |
bool | compute (vcl_vector< HomgPoint2D > &points1, vcl_vector< HomgPoint2D > &points2, FMatrix *F) |
FMatrix | compute (PairMatchSetCorner &matched_points) |
Compute fundamental matrix using given matchlist and return an FMatrix object. | |
FMatrix | compute (vcl_vector< HomgPoint2D > &pts1, vcl_vector< HomgPoint2D > &pts2) |
FMatrix | compute (vcl_vector< vgl_homg_point_2d< double > > &pts1, vcl_vector< vgl_homg_point_2d< double > > &pts2) |
Protected Attributes | |
double | outlier_distance_squared_ |
const ImageMetric * | image_metric1_ |
const ImageMetric * | image_metric2_ |
Definition at line 36 of file FMPlanarComputeNonLinear.h.
FMPlanarComputeNonLinear::FMPlanarComputeNonLinear | ( | const ImageMetric * | image_metric1, |
const ImageMetric * | image_metric2, | ||
double | outlier_threshold = 0 |
||
) |
Constructor.
The parameter outlier_threshold is not currently used, but may be in future if this is converted to a Huber function.
Definition at line 18 of file FMPlanarComputeNonLinear.cxx.
FMatrix FMatrixCompute::compute | ( | PairMatchSetCorner & | matched_points | ) | [inline, inherited] |
Compute fundamental matrix using given matchlist and return an FMatrix object.
This is implemented in terms of compute(MatchList*, FMatrix*)
Reimplemented in FMatrixComputeLinear, and FMatrixComputeRobust.
Definition at line 59 of file FMatrixCompute.h.
bool FMPlanarComputeNonLinear::compute | ( | vcl_vector< vgl_homg_point_2d< double > > & | points1, |
vcl_vector< vgl_homg_point_2d< double > > & | points2, | ||
FMatrix & | F | ||
) | [virtual] |
Reimplemented from FMatrixCompute.
Definition at line 81 of file FMPlanarComputeNonLinear.cxx.
bool FMPlanarComputeNonLinear::compute | ( | PairMatchSetCorner & | matches, |
FMatrix * | F_out | ||
) | [virtual] |
This is the virtual compute interface.
Compute fundamental matrix using given matchlist.
These 3 functions are implemented in terms of each other, so it suffices to implement exactly one of them in a derived class, and implement the other ones by calling this implementation.
This is implemented in terms of compute(FMatrix*). This circular dependency means that only one of these three functions needs to be implemented for all three to work.
It also means that calling one of these on a base FMatrixCompute will blow your stack, but FMatrixCompute is abstract so that ``can't happen''.
Reimplemented from FMatrixCompute.
Definition at line 55 of file FMPlanarComputeNonLinear.cxx.
FMatrix FMatrixCompute::compute | ( | vcl_vector< HomgPoint2D > & | pts1, |
vcl_vector< HomgPoint2D > & | pts2 | ||
) | [inline, inherited] |
Reimplemented in FMatrixComputeLinear, and FMatrixComputeRobust.
Definition at line 62 of file FMatrixCompute.h.
bool FMPlanarComputeNonLinear::compute | ( | vcl_vector< HomgPoint2D > & | points1, |
vcl_vector< HomgPoint2D > & | points2, | ||
FMatrix * | F | ||
) | [virtual] |
Reimplemented from FMatrixCompute.
Definition at line 67 of file FMPlanarComputeNonLinear.cxx.
FMatrix FMatrixCompute::compute | ( | vcl_vector< vgl_homg_point_2d< double > > & | pts1, |
vcl_vector< vgl_homg_point_2d< double > > & | pts2 | ||
) | [inline, inherited] |
Reimplemented in FMatrixComputeLinear, and FMatrixComputeRobust.
Definition at line 64 of file FMatrixCompute.h.
bool FMPlanarComputeNonLinear::compute_planar | ( | vcl_vector< vgl_homg_point_2d< double > > & | points1, |
vcl_vector< vgl_homg_point_2d< double > > & | points2, | ||
FMatrixPlanar & | F | ||
) |
Compute from given pair of vcl_vector<vgl_homg_point_2d<double> >.
Definition at line 46 of file FMPlanarComputeNonLinear.cxx.
bool FMPlanarComputeNonLinear::compute_planar | ( | PairMatchSetCorner & | matches, |
FMatrixPlanar * | F | ||
) |
Compute from given PairMatchSetCorner.
Definition at line 29 of file FMPlanarComputeNonLinear.cxx.
bool FMPlanarComputeNonLinear::compute_planar | ( | vcl_vector< HomgPoint2D > & | points1, |
vcl_vector< HomgPoint2D > & | points2, | ||
FMatrixPlanar * | F | ||
) |
Compute from given pair of vcl_vector<HomgPoint2D>.
Definition at line 36 of file FMPlanarComputeNonLinear.cxx.
const ImageMetric* FMPlanarComputeNonLinear::image_metric1_ [protected] |
Definition at line 42 of file FMPlanarComputeNonLinear.h.
const ImageMetric* FMPlanarComputeNonLinear::image_metric2_ [protected] |
Definition at line 43 of file FMPlanarComputeNonLinear.h.
double FMPlanarComputeNonLinear::outlier_distance_squared_ [protected] |
Definition at line 40 of file FMPlanarComputeNonLinear.h.