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

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

#include <mdsImageTransform.h>

Inheritance diagram for mds::img::CImageTransform< 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 I::tImage tImage
 Image type.
typedef I::tPixel tPixel
 Image pixel type.

Public Member Functions

bool checkOption (int Flag)
 Checks if a given option is enabled.
 CImageTransform (int Flags=0)
 Default constructor.
CImageTransformfillMargin (tPixel Value)
 Sets pixel value used to fill image margin.
virtual bool operator() (const tImage &SrcImage, tImage &DstImage)=0
 Applies the geometrical transformation to an input image.
CImageTransformresize ()
 Enables automatic correction of the output image size.
CImageTransformsetOptions (int Flags)
 Sets transformation settings.
virtual ~CImageTransform ()
 Virtual destructor.

Protected Attributes

tPixel m_MarginValue
 Pixel value used to fill image margin.
int m_Options
 Transformation settings.

Detailed Description

template<class I, template< class > class Interpolator>
class mds::img::CImageTransform< I, Interpolator >

Base class for all geometrical image transformations.


Member Typedef Documentation

template<class I , template< class > class Interpolator>
typedef I::tImage mds::img::CImageTransform< I, Interpolator >::tImage

Image type.

Reimplemented in mds::img::CAffineTransform< I, Interpolator >.

template<class I , template< class > class Interpolator>
typedef I::tPixel mds::img::CImageTransform< I, Interpolator >::tPixel

Image pixel type.

Reimplemented in mds::img::CAffineTransform< I, Interpolator >.


Member Enumeration Documentation

template<class I , template< class > class Interpolator>
anonymous enum

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< class > class Interpolator>
mds::img::CImageTransform< I, Interpolator >::CImageTransform ( int  Flags = 0)

Default constructor.

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

Virtual destructor.


Member Function Documentation

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

Checks if a given option is enabled.

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

Sets pixel value used to fill image margin.

template<class I , template< class > class Interpolator>
virtual bool mds::img::CImageTransform< I, Interpolator >::operator() ( const tImage SrcImage,
tImage DstImage 
) [pure virtual]

Applies the geometrical transformation to an input image.

  • Returns false on failure.

Implemented in mds::img::CAffineTransform< I, Interpolator >.

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

Enables automatic correction of the output image size.

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

Sets transformation settings.


Member Data Documentation

template<class I , template< class > class Interpolator>
tPixel mds::img::CImageTransform< I, Interpolator >::m_MarginValue [protected]

Pixel value used to fill image margin.

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

Transformation settings.


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