Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TrifocalTensorBase.hh
1 /*
2 This file is part of the BIAS library (Basic ImageAlgorithmS).
3 
4 Copyright (C) 2003-2009 (see file CONTACT for details)
5  Multimediale Systeme der Informationsverarbeitung
6  Institut fuer Informatik
7  Christian-Albrechts-Universitaet Kiel
8 
9 
10 BIAS is free software; you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14 
15 BIAS is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Lesser General Public License for more details.
19 
20 You should have received a copy of the GNU Lesser General Public License
21 along with BIAS; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 
25 
26 #ifndef __TrifocalTensorBase_hh__
27 #define __TrifocalTensorBase_hh__
28 
29 #include <Base/Math/Tensor3D3x3x3.hh>
30 #include <Base/Math/Matrix3x3.hh>
31 #include <Base/Math/Vector3.hh>
32 #include <Base/Geometry/RMatrixBase.hh>
33 #include <Base/Geometry/PMatrixBase.hh>
34 #include <Base/Geometry/HomgPoint2D.hh>
35 #include <Base/Geometry/HomgPoint3D.hh>
36 
37 #define TRIFOCALTENSOR_TYPE double
38 
39 namespace BIAS {
40 
41  class BIASGeometryBase_EXPORT TrifocalTensorBase
42  : public Tensor3D3x3x3<TRIFOCALTENSOR_TYPE>
43  {
44  public:
47 
49 
50  void Dump();
51 
52  /** composition for "normalized" (with K^-1) image points */
53  void Compose(RMatrixBase& R1, RMatrixBase& R2, RMatrixBase& R3,
55  Vector3<double>& C3);
56  void Compose(RMatrixBase& R1, RMatrixBase& R2, RMatrixBase& R3,
57  HomgPoint3D& C1, HomgPoint3D& C2, HomgPoint3D& C3);
58 
59  /** composition for R1=I and C1=0 */
60  void Compose(RMatrixBase& R2, RMatrixBase& R3, Vector3<double>& C2,
61  Vector3<double>& C3);
62  void Compose(RMatrixBase& R2, RMatrixBase& R3,
63  HomgPoint3D& C2, HomgPoint3D& C3);
64 
65  void CheckPointCorr(HomgPoint2D& p1, HomgPoint2D& p2, HomgPoint2D& p3,
66  Matrix3x3<double>& res);
67 
68 
69 
70  TrifocalTensorBase& operator=(const TrifocalTensorBase& t);
71 
72  protected:
73 
74  }; // class
75 
76 
77 } // namespace
78 
79 #endif // __TrifocalTensorBase_hh__
class HomgPoint2D describes a point with 2 degrees of freedom in projective coordinates.
Definition: HomgPoint2D.hh:67
class HomgPoint3D describes a point with 3 degrees of freedom in projective coordinates.
Definition: HomgPoint3D.hh:61
Implements a 3D rotation matrix.
Definition: RMatrixBase.hh:44