MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Attributes
mds::img::CAffineTransform< I, Interpolator > Class Template Reference

Base class for all geometrical image transformations. More...

#include <mdsAffineTransform.h>

Inheritance diagram for mds::img::CAffineTransform< I, Interpolator >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE }
 Check that I is an image. More...
typedef CImageTransform< I,
Interpolator
tBase
typedef CAffineMatrix::tCoords3 tCoords3
 Point/vector coordinates.
typedef tBase::tImage tImage
 Image type.
typedef CAffineMatrix tMatrix
 Affine transformation matrix.
typedef tBase::tPixel tPixel
 Image pixel type.

Public Member Functions

 CAffineTransform (int iFlags=0)
 Default constructor.
bool checkOption (int Flag)
 Checks if a given option is enabled.
CImageTransformfillMargin (tPixel Value)
 Sets pixel value used to fill image margin.
const tMatrixgetInvMatrix () const
const tMatrixgetMatrix () const
 Returns the current transformation matrix.
virtual bool operator() (const tImage &SrcImage, tImage &DstImage)
 Applies the geometrical transformation.
CImageTransformresize ()
 Enables automatic correction of the output image size.
void setMatrix (const tMatrix &m)
 Changes the transformation matrix.
CImageTransformsetOptions (int Flags)
 Sets transformation settings.
tCoords3 warp (const tCoords3 &v) const
 Forward point transformation.
void warp (const tCoords3 &Src, tCoords3 &Dst) const
void warp2 (tCoords3 &v) const
tCoords3 warpBack (const tCoords3 &v) const
 Backward point transformation.
void warpBack (const tCoords3 &Src, tCoords3 &Dst) const
void warpBack2 (tCoords3 &v) const
virtual ~CAffineTransform ()
 Virtual destructor.

Protected Attributes

tMatrix m_InvMatrix
tPixel m_MarginValue
 Pixel value used to fill image margin.
tMatrix m_Matrix
 Forward and backward transformation matrix.
int m_Options
 Transformation settings.

Detailed Description

template<class I, template< typename > class Interpolator>
class mds::img::CAffineTransform< I, Interpolator >

Base class for all geometrical image transformations.


Member Typedef Documentation

template<class I , template< typename > class Interpolator>
typedef CImageTransform<I,Interpolator> mds::img::CAffineTransform< I, Interpolator >::tBase
template<class I , template< typename > class Interpolator>
typedef CAffineMatrix::tCoords3 mds::img::CAffineTransform< I, Interpolator >::tCoords3

Point/vector coordinates.

template<class I , template< typename > class Interpolator>
typedef tBase::tImage mds::img::CAffineTransform< I, Interpolator >::tImage

Image type.

Reimplemented from mds::img::CImageTransform< I, Interpolator >.

template<class I , template< typename > class Interpolator>
typedef CAffineMatrix mds::img::CAffineTransform< I, Interpolator >::tMatrix

Affine transformation matrix.

template<class I , template< typename > class Interpolator>
typedef tBase::tPixel mds::img::CAffineTransform< I, Interpolator >::tPixel

Image pixel type.

Reimplemented from mds::img::CImageTransform< I, Interpolator >.


Member Enumeration Documentation

template<class I , template< class > class Interpolator>
anonymous enum [inherited]

Check that I is an image.

You will see name of this enum somewhere in compiler error message if the type I is not image.

Enumerator:
TEMPLATE_PARAMETER_IS_NOT_IMAGE 

Constructor & Destructor Documentation

template<class I , template< typename > class Interpolator>
mds::img::CAffineTransform< I, Interpolator >::CAffineTransform ( int  iFlags = 0)

Default constructor.

template<class I , template< typename > class Interpolator>
virtual mds::img::CAffineTransform< I, Interpolator >::~CAffineTransform ( ) [virtual]

Virtual destructor.


Member Function Documentation

template<class I , template< class > class Interpolator>
bool mds::img::CImageTransform< I, Interpolator >::checkOption ( int  Flag) [inherited]

Checks if a given option is enabled.

template<class I , template< class > class Interpolator>
CImageTransform& mds::img::CImageTransform< I, Interpolator >::fillMargin ( tPixel  Value) [inherited]

Sets pixel value used to fill image margin.

template<class I , template< typename > class Interpolator>
const tMatrix& mds::img::CAffineTransform< I, Interpolator >::getInvMatrix ( ) const
template<class I , template< typename > class Interpolator>
const tMatrix& mds::img::CAffineTransform< I, Interpolator >::getMatrix ( ) const

Returns the current transformation matrix.

template<class I , template< typename > class Interpolator>
bool CAffineTransform::operator() ( const tImage SrcImage,
tImage DstImage 
) [virtual]

Applies the geometrical transformation.

  • Returns false on failure.

Implements mds::img::CImageTransform< I, Interpolator >.

template<class I , template< class > class Interpolator>
CImageTransform& mds::img::CImageTransform< I, Interpolator >::resize ( ) [inherited]

Enables automatic correction of the output image size.

template<class I , template< typename > class Interpolator>
void mds::img::CAffineTransform< I, Interpolator >::setMatrix ( const tMatrix m)

Changes the transformation matrix.

template<class I , template< class > class Interpolator>
CImageTransform& mds::img::CImageTransform< I, Interpolator >::setOptions ( int  Flags) [inherited]

Sets transformation settings.

template<class I , template< typename > class Interpolator>
tCoords3 mds::img::CAffineTransform< I, Interpolator >::warp ( const tCoords3 v) const

Forward point transformation.

template<class I , template< typename > class Interpolator>
void mds::img::CAffineTransform< I, Interpolator >::warp ( const tCoords3 Src,
tCoords3 Dst 
) const
template<class I , template< typename > class Interpolator>
void mds::img::CAffineTransform< I, Interpolator >::warp2 ( tCoords3 v) const
template<class I , template< typename > class Interpolator>
tCoords3 mds::img::CAffineTransform< I, Interpolator >::warpBack ( const tCoords3 v) const

Backward point transformation.

template<class I , template< typename > class Interpolator>
void mds::img::CAffineTransform< I, Interpolator >::warpBack ( const tCoords3 Src,
tCoords3 Dst 
) const
template<class I , template< typename > class Interpolator>
void mds::img::CAffineTransform< I, Interpolator >::warpBack2 ( tCoords3 v) const

Member Data Documentation

template<class I , template< typename > class Interpolator>
tMatrix mds::img::CAffineTransform< I, Interpolator >::m_InvMatrix [protected]
template<class I , template< class > class Interpolator>
tPixel mds::img::CImageTransform< I, Interpolator >::m_MarginValue [protected, inherited]

Pixel value used to fill image margin.

template<class I , template< typename > class Interpolator>
tMatrix mds::img::CAffineTransform< I, Interpolator >::m_Matrix [protected]

Forward and backward transformation matrix.

template<class I , template< class > class Interpolator>
int mds::img::CImageTransform< I, Interpolator >::m_Options [protected, inherited]

Transformation settings.


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