DGtal 1.4.0
|
Aim: Functor that flips the domain coordinate system from some selected axis. For instance, if a flip on the y axis is applied on a domain of bounds (0, 0, 0) (MaxX, MaxY, MaxZ), then the coordinate of P(x,y,z) will transformed in P(x, MaxY-y, z). More...
#include <DGtal/kernel/BasicPointFunctors.h>
Public Types | |
typedef TDomain::Space | Space |
typedef TDomain::Size | Size |
typedef Space::Dimension | Dimension |
typedef Space::Point | Point |
Public Member Functions | |
FlipDomainAxis (const TDomain &aSourceDomain, const std::vector< Dimension > &axisFlipped) | |
Point | operator() (const Point &aPoint) const |
Private Attributes | |
TDomain | mySourceDomain |
std::vector< Dimension > | myAxisFlipped |
Aim: Functor that flips the domain coordinate system from some selected axis. For instance, if a flip on the y axis is applied on a domain of bounds (0, 0, 0) (MaxX, MaxY, MaxZ), then the coordinate of P(x,y,z) will transformed in P(x, MaxY-y, z).
Description of template class 'FlipDomainAxis'
Such functor can be useful to apply basic image flip from some specific axis directions.
TDomain | the type of the domain. |
Definition at line 758 of file BasicPointFunctors.h.
typedef Space::Dimension DGtal::functors::FlipDomainAxis< TDomain >::Dimension |
Definition at line 763 of file BasicPointFunctors.h.
typedef Space::Point DGtal::functors::FlipDomainAxis< TDomain >::Point |
Definition at line 764 of file BasicPointFunctors.h.
typedef TDomain::Size DGtal::functors::FlipDomainAxis< TDomain >::Size |
Definition at line 762 of file BasicPointFunctors.h.
typedef TDomain::Space DGtal::functors::FlipDomainAxis< TDomain >::Space |
Definition at line 761 of file BasicPointFunctors.h.
|
inline |
Constructor. Construct the functor from a source domain and a vector defining the axis being flipped. Such a vector should contain the dimension number associated to the axis to be flipped. For instance to flip the x and z axis of a given 3d domain you have to give a vector containing 1 and 2.
aSourceDomain | the source domain. |
axisFlipped | a vector containing the indices of the dimension to be flipped. |
Definition at line 778 of file BasicPointFunctors.h.
|
inline |
The operator computes the coordinates of the point in the flipped domain.
aPoint | a source point. |
Definition at line 793 of file BasicPointFunctors.h.
References aPoint(), dim, DGtal::SpaceND< dim, TInteger >::dimension, DGtal::functors::FlipDomainAxis< TDomain >::myAxisFlipped, and DGtal::functors::FlipDomainAxis< TDomain >::mySourceDomain.
|
private |
Definition at line 807 of file BasicPointFunctors.h.
Referenced by DGtal::functors::FlipDomainAxis< TDomain >::operator()().
|
private |
Definition at line 806 of file BasicPointFunctors.h.
Referenced by DGtal::functors::FlipDomainAxis< TDomain >::operator()().