contrib/oxl/mvl/HMatrix2DCompute4Point.h
Go to the documentation of this file.
00001 #ifndef _HMatrix2DCompute4Point_h
00002 #define _HMatrix2DCompute4Point_h
00003 
00004 //--------------------------------------------------------------
00005 //:
00006 // \file
00007 //
00008 // HMatrix2DComputeLinear contains a linear method to calculate
00009 // the plane projectivity which relates four 2D point correspondences.
00010 // The returned $H$ is such that
00011 // $H ~ [p_1 ~ p_2 ~ p_3 ~ p_4 ] \sim [p'_1 ~ p'_2 ~ p'_3 ~ p'_4 ]$
00012 // where the $p_i$ are the homogeneous points in the first view, and the
00013 // $p'_i$ their images.
00014 //
00015 // \verbatim
00016 // Modifications:
00017 //      08-02-98 FSM obsoleted bool compute(HMatrix2D *)
00018 // \endverbatim
00019 
00020 #include "HMatrix2DCompute.h"
00021 
00022 class HMatrix2DCompute4Point : public HMatrix2DCompute {
00023 public:
00024   int minimum_number_of_correspondences() const { return 4; }
00025 
00026 protected:
00027   bool compute_p(PointArray const &,
00028                  PointArray const &,
00029                  HMatrix2D *);
00030 };
00031 
00032 #endif // _HMatrix2DCompute4Point_h