DGtal  0.9.4beta
Public Types | Public Member Functions | Protected Attributes | Private Member Functions
DGtal::functors::BackwardRigidTransformation2D< TSpace > Class Template Reference

#include <DGtal/images/RigidTransformation2D.h>

Inheritance diagram for DGtal::functors::BackwardRigidTransformation2D< TSpace >:
[legend]
Collaboration diagram for DGtal::functors::BackwardRigidTransformation2D< TSpace >:
[legend]

Public Types

typedef TSpace::Point Point
 
typedef TSpace::RealPoint RealPoint
 
typedef TSpace::RealVector RealVector
 

Public Member Functions

 BackwardRigidTransformation2D (const RealPoint &aOrigin, const double &angle, const RealVector &aTranslate)
 
Point operator() (const Point &aInput) const
 

Protected Attributes

RealPoint origin
 
double t_sin
 
double t_cos
 
RealVector translation
 

Private Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >))
 
 BOOST_STATIC_ASSERT ((TSpace::dimension==2))
 

Detailed Description

template<typename TSpace>
class DGtal::functors::BackwardRigidTransformation2D< TSpace >

Aim: implements backward rigid transformation of point in the 2D integer space. Warring: This version uses closest neighbor interpolation.

Description of template functor like class 'BackwardRigidTransformation2D'

Template Parameters
TSpacea 2 dimensional space.
See also
exampleRigidtransformation2d.cpp

Definition at line 132 of file RigidTransformation2D.h.

Member Typedef Documentation

template<typename TSpace>
typedef TSpace::Point DGtal::functors::BackwardRigidTransformation2D< TSpace >::Point

Definition at line 140 of file RigidTransformation2D.h.

template<typename TSpace>
typedef TSpace::RealPoint DGtal::functors::BackwardRigidTransformation2D< TSpace >::RealPoint

Definition at line 141 of file RigidTransformation2D.h.

template<typename TSpace>
typedef TSpace::RealVector DGtal::functors::BackwardRigidTransformation2D< TSpace >::RealVector

Definition at line 142 of file RigidTransformation2D.h.

Constructor & Destructor Documentation

template<typename TSpace>
DGtal::functors::BackwardRigidTransformation2D< TSpace >::BackwardRigidTransformation2D ( const RealPoint aOrigin,
const double &  angle,
const RealVector aTranslate 
)
inline

Constructor.

Parameters
aOriginthe center of rotation.
anglethe angle given in radians.
aTranslatethe 2D dimensional vector which represents translation.

Definition at line 152 of file RigidTransformation2D.h.

Member Function Documentation

template<typename TSpace>
DGtal::functors::BackwardRigidTransformation2D< TSpace >::BOOST_CONCEPT_ASSERT ( (concepts::CSpace< TSpace >)  )
private

Checking concepts.

template<typename TSpace>
DGtal::functors::BackwardRigidTransformation2D< TSpace >::BOOST_STATIC_ASSERT ( (TSpace::dimension==2)  )
private
template<typename TSpace>
Point DGtal::functors::BackwardRigidTransformation2D< TSpace >::operator() ( const Point aInput) const
inline

Operator

Returns
transformed point.

Definition at line 165 of file RigidTransformation2D.h.

166  {
167  Point p;
168  p[0] = std::floor ( ( t_cos * (aInput[0] - translation[0] - origin[0] ) +
169  t_sin * ( aInput[1] - translation[1] - origin[1] ) ) + origin[0] + 0.5 );
170 
171  p[1] = std::floor ( ( -t_sin * ( aInput[0] - translation[0] - origin[0] ) +
172  t_cos * ( aInput[1] - translation[1] - origin[1] ) ) + origin[1] + 0.5 );
173  return p;
174  }

Field Documentation

template<typename TSpace>
RealPoint DGtal::functors::BackwardRigidTransformation2D< TSpace >::origin
protected
template<typename TSpace>
double DGtal::functors::BackwardRigidTransformation2D< TSpace >::t_cos
protected
template<typename TSpace>
double DGtal::functors::BackwardRigidTransformation2D< TSpace >::t_sin
protected
template<typename TSpace>
RealVector DGtal::functors::BackwardRigidTransformation2D< TSpace >::translation
protected

The documentation for this class was generated from the following file: