IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HomographyTransform3d.h
1 // HomographyTransform3d.h:
3 // ------------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_HOMOGRAPHYTRANSFORM3D_H__
16 #define __IPSDKGEOMETRY_HOMOGRAPHYTRANSFORM3D_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::geom::HomographyTransform3d::_matH' : class 'boost::numeric::ublas::bounded_matrix<ipsdk::ipReal64,0x04,0x04,boost::numeric::ublas::row_major>' needs to have dll-interface to be used by clients of class 'ipsdk::geom::HomographyTransform3d'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKGeometry/Transform/3d/BaseGeometryTransform3d.h>
24 #include <IPSDKMath/Geometry/3d/Transform/Homography3d.h>
25 
26 namespace ipsdk {
27 namespace geom {
28 
31 
33 {
34  // declare geometry transform 3d
36 
37 // predefined public types
38 public:
40  static const eTransform3dType::domain g_transform3dType = eTransform3dType::eT3DT_HomographyTransform;
41 
42 public:
50 
51 // methods
52 public:
54  eTransform3dType getTransform3dType() const;
55 
58  void init(const math::Matrix4d& matH);
59  void init(const math::transform::Homography3d& transform);
61 
62 protected:
65  template <typename T>
66  void processPoint(Point3dData<T>& entity) const;
67  template <typename T>
68  bool processInSitu(Point3d<T>& entity) const;
69  bool processInSitu(Vector3d& entity) const;
70  template <typename T>
71  bool processInSitu(PointCloud3d<T>& entity) const;
72  template <typename T>
73  bool processInSitu(Mesh3d<T>& entity) const;
74  template <typename T>
75  bool processInSitu(MeshWithHoles3d<T>& entity) const;
76  bool processInSitu(Shape3d& entity) const;
77  template <typename T>
78  bool processInSitu(Segment3d<T>& entity) const;
80 
81 // attributes
82 protected:
85 };
86 
89 
90 inline eTransform3dType
92 {
93  return g_transform3dType;
94 }
95 
96 inline void
98 {
99  _transform = transform;
100 }
101 
104 
105 } // end of namespace geom
106 } // end of namespace ipsdk
107 
108 #pragma warning (pop)
109 
110 #endif // __IPSDKGEOMETRY_HOMOGRAPHYTRANSFORM3D_H__
3d segment associated to two points
Definition: Segment3d.h:38
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void init(const math::Matrix4d &matH)
initialization of transformation parameters
Point class associated to cartesian 3d coordinates.
Definition: GeometryEntity3dTypes.h:29
eTransform3dType
Enumerate describing geometry 3d transform type.
Definition: GeometryTransform3dTypes.h:33
eTransform3dType getTransform3dType() const
method allowing to retrieve entity 3d transformation type
Definition: HomographyTransform3d.h:91
Vector class associated to spherical 3d coordinates.
Definition: Vector3d.h:32
#define IPSDK_DECLARE_GEOMETRY_TRANSFORM_3D(libraryName, className)
Macro allowing to declare a geometry transform 3d.
Definition: GeometryTransform3dHdrMacros.h:26
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
Base class for geometry 3d transformations.
Definition: BaseGeometryTransform3d.h:31
math::transform::Homography3d _transform
underlying transformation
Definition: HomographyTransform3d.h:84
boost::numeric::ublas::bounded_matrix< ipReal64, 4, 4 > Matrix4d
4d matrix (4x4) type associated to library
Definition: LinearAlgebraTypes.h:57
Homography 3d transformation.
Definition: HomographyTransform3d.h:32
Transformation class allowing to manage 3d homography transformations.
Definition: Homography3d.h:32
Closed mesh associated to a triangulated boundary.
Definition: Mesh3d.h:43
Unordered collection of 3d points.
Definition: PointCloud3d.h:35
static const eTransform3dType::domain g_transform3dType
geometry transformation type
Definition: HomographyTransform3d.h:40
Closed mesh potentially associated to interior mesh holes.
Definition: MeshWithHoles3d.h:39
Homography transformation.
Definition: GeometryTransform3dTypes.h:47
Lightweight structure used to store Point3d data.
Definition: GeometryEntity3dTypes.h:27
Shape 3d associated to one or more closed mesh 3d.
Definition: Shape3d.h:34