#include <FMatrixComputeLinear.h>
Public Member Functions | |
FMatrixComputeLinear (bool precondition=true, bool rank2_truncate=true) | |
Initialize FMatrixComputeLinear object. | |
bool | compute (PairMatchSetCorner &, FMatrix *F) |
Compute a fundamental matrix for a set of point matches. | |
bool | compute (vcl_vector< HomgPoint2D > &, vcl_vector< HomgPoint2D > &, FMatrix *F) |
Interface to above using arrays of HomgPoint2D. | |
bool | compute (vcl_vector< vgl_homg_point_2d< double > > &, vcl_vector< vgl_homg_point_2d< double > > &, FMatrix &F) |
Interface to above using arrays of vgl_homg_point_2d. | |
bool | compute_preconditioned (vcl_vector< HomgPoint2D > &, vcl_vector< HomgPoint2D > &, FMatrix *F) |
Interface to above using preconditioned points. | |
bool | compute_preconditioned (vcl_vector< vgl_homg_point_2d< double > > &, vcl_vector< vgl_homg_point_2d< double > > &, FMatrix &F) |
Interface to above using preconditioned points. | |
FMatrix | compute (PairMatchSetCorner &p) |
Compute fundamental matrix using given matchlist and return an FMatrix object. | |
FMatrix | compute (vcl_vector< HomgPoint2D > &p1, vcl_vector< HomgPoint2D > &p2) |
FMatrix | compute (vcl_vector< vgl_homg_point_2d< double > > &p1, vcl_vector< vgl_homg_point_2d< double > > &p2) |
Private Attributes | |
bool | precondition_ |
bool | rank2_truncate_ |
Definition at line 38 of file FMatrixComputeLinear.h.
FMatrixComputeLinear::FMatrixComputeLinear | ( | bool | precondition = true , |
bool | rank2_truncate = true |
||
) |
Initialize FMatrixComputeLinear object.
If precondition = false, points are not conditioned prior to computation. If rank2_truncate = false, the resulting solution is not forced to rank 2 using the vnl_svd<double>.
Definition at line 27 of file FMatrixComputeLinear.cxx.
bool FMatrixComputeLinear::compute | ( | PairMatchSetCorner & | matches, |
FMatrix * | F | ||
) | [virtual] |
Compute a fundamental matrix for a set of point matches.
Return false if the calculation fails or there are fewer than eight point matches in the list.
Reimplemented from FMatrixCompute.
Definition at line 41 of file FMatrixComputeLinear.cxx.
bool FMatrixComputeLinear::compute | ( | vcl_vector< HomgPoint2D > & | points1, |
vcl_vector< HomgPoint2D > & | points2, | ||
FMatrix * | F | ||
) | [virtual] |
Interface to above using arrays of HomgPoint2D.
Makes a PairMatchSetCorner, and then calls the compute method above.
Reimplemented from FMatrixCompute.
Definition at line 79 of file FMatrixComputeLinear.cxx.
bool FMatrixComputeLinear::compute | ( | vcl_vector< vgl_homg_point_2d< double > > & | points1, |
vcl_vector< vgl_homg_point_2d< double > > & | points2, | ||
FMatrix & | F | ||
) | [virtual] |
Interface to above using arrays of vgl_homg_point_2d.
Makes a PairMatchSetCorner, and then calls the compute method above.
Reimplemented from FMatrixCompute.
Definition at line 51 of file FMatrixComputeLinear.cxx.
FMatrix FMatrixComputeLinear::compute | ( | PairMatchSetCorner & | matched_points | ) | [inline] |
Compute fundamental matrix using given matchlist and return an FMatrix object.
This is implemented in terms of compute(MatchList*, FMatrix*)
Reimplemented from FMatrixCompute.
Definition at line 76 of file FMatrixComputeLinear.h.
FMatrix FMatrixComputeLinear::compute | ( | vcl_vector< HomgPoint2D > & | p1, |
vcl_vector< HomgPoint2D > & | p2 | ||
) | [inline] |
Reimplemented from FMatrixCompute.
Definition at line 77 of file FMatrixComputeLinear.h.
FMatrix FMatrixComputeLinear::compute | ( | vcl_vector< vgl_homg_point_2d< double > > & | p1, |
vcl_vector< vgl_homg_point_2d< double > > & | p2 | ||
) | [inline] |
Reimplemented from FMatrixCompute.
Definition at line 79 of file FMatrixComputeLinear.h.
bool FMatrixComputeLinear::compute_preconditioned | ( | vcl_vector< HomgPoint2D > & | points1, |
vcl_vector< HomgPoint2D > & | points2, | ||
FMatrix * | F | ||
) |
Interface to above using preconditioned points.
Definition at line 131 of file FMatrixComputeLinear.cxx.
bool FMatrixComputeLinear::compute_preconditioned | ( | vcl_vector< vgl_homg_point_2d< double > > & | points1, |
vcl_vector< vgl_homg_point_2d< double > > & | points2, | ||
FMatrix & | F | ||
) |
Interface to above using preconditioned points.
Definition at line 107 of file FMatrixComputeLinear.cxx.
bool FMatrixComputeLinear::precondition_ [private] |
Definition at line 40 of file FMatrixComputeLinear.h.
bool FMatrixComputeLinear::rank2_truncate_ [private] |
Definition at line 41 of file FMatrixComputeLinear.h.