Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AffineTransf.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 __AFFINETRANSFORMATION_HH__
27 #define __AFFINETRANSFORMATION_HH__
28 #include "bias_config.h"
29 
30 #include <Base/Math/Matrix3x4.hh>
31 #include <Base/Math/Matrix3x3.hh>
32 #include "HomgPoint3D.hh"
33 #include "RMatrixBase.hh"
34 
35 namespace BIAS{
36 
37  /** @class AffineTransf
38  @ingroup g_geometry
39  last line of an affine transformation in 3d space is always 0 0 0 1
40  and can therefor be droped from this class
41  for this reason it is necessairy to overload certain operators
42  and functions e.g. *, Mult, ...
43  */
44  class BIASGeometryBase_EXPORT AffineTransf : public Matrix3x4<double>
45  {
46  public:
47  AffineTransf();
48 
49  ~AffineTransf();
50 
51  inline RMatrixBase GetR() const
52  { return R_; };
53 
54  inline Vector3<double> GetC() const
55  { return C_; };
56 
58 
59  /** args must be of type Vector4<double> because this should work
60  not only for HomgPoint3D but also for HomPLane3D, ... */
61  void Mult(Vector4<double>& argv, Vector4<double>& destv);
62 
63  AffineTransf& operator=(const AffineTransf& arg);
64 
65  void SetAsRotationMatrix(Matrix3x3<double>& R);
66 
67  protected:
70  };
71 
72 } // namespace BIAS
73 #endif // __AFFINETRANSFORMATION_HH__
Vector3< double > GetC() const
Definition: AffineTransf.hh:54
Vector3< double > C_
Definition: AffineTransf.hh:69
class Vector4 contains a Vector of dim.
Definition: Vector4.hh:65
RMatrixBase GetR() const
Definition: AffineTransf.hh:51
class HomgPoint3D describes a point with 3 degrees of freedom in projective coordinates.
Definition: HomgPoint3D.hh:61
DualQuaternion< T > operator*(const DualQuaternion< T > &l, const T &scalar)
Implements a 3D rotation matrix.
Definition: RMatrixBase.hh:44
is a &#39;fixed size&#39; rectangular matrix of dim.
Definition: Matrix3x3.hh:39
last line of an affine transformation in 3d space is always 0 0 0 1 and can therefor be droped from t...
Definition: AffineTransf.hh:44