MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for all geometrical image transformations. More...
#include <mdsAffineTransform.h>
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. | |
CImageTransform & | fillMargin (tPixel Value) |
Sets pixel value used to fill image margin. | |
const tMatrix & | getInvMatrix () const |
const tMatrix & | getMatrix () const |
Returns the current transformation matrix. | |
virtual bool | operator() (const tImage &SrcImage, tImage &DstImage) |
Applies the geometrical transformation. | |
CImageTransform & | resize () |
Enables automatic correction of the output image size. | |
void | setMatrix (const tMatrix &m) |
Changes the transformation matrix. | |
CImageTransform & | setOptions (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. |
Base class for all geometrical image transformations.
typedef CImageTransform<I,Interpolator> mds::img::CAffineTransform< I, Interpolator >::tBase |
typedef CAffineMatrix::tCoords3 mds::img::CAffineTransform< I, Interpolator >::tCoords3 |
Point/vector coordinates.
typedef tBase::tImage mds::img::CAffineTransform< I, Interpolator >::tImage |
Image type.
Reimplemented from mds::img::CImageTransform< I, Interpolator >.
typedef CAffineMatrix mds::img::CAffineTransform< I, Interpolator >::tMatrix |
Affine transformation matrix.
typedef tBase::tPixel mds::img::CAffineTransform< I, Interpolator >::tPixel |
Image pixel type.
Reimplemented from mds::img::CImageTransform< I, Interpolator >.
anonymous enum [inherited] |
mds::img::CAffineTransform< I, Interpolator >::CAffineTransform | ( | int | iFlags = 0 | ) |
Default constructor.
virtual mds::img::CAffineTransform< I, Interpolator >::~CAffineTransform | ( | ) | [virtual] |
Virtual destructor.
bool mds::img::CImageTransform< I, Interpolator >::checkOption | ( | int | Flag | ) | [inherited] |
Checks if a given option is enabled.
CImageTransform& mds::img::CImageTransform< I, Interpolator >::fillMargin | ( | tPixel | Value | ) | [inherited] |
Sets pixel value used to fill image margin.
const tMatrix& mds::img::CAffineTransform< I, Interpolator >::getInvMatrix | ( | ) | const |
const tMatrix& mds::img::CAffineTransform< I, Interpolator >::getMatrix | ( | ) | const |
Returns the current transformation matrix.
bool CAffineTransform::operator() | ( | const tImage & | SrcImage, |
tImage & | DstImage | ||
) | [virtual] |
Applies the geometrical transformation.
Implements mds::img::CImageTransform< I, Interpolator >.
CImageTransform& mds::img::CImageTransform< I, Interpolator >::resize | ( | ) | [inherited] |
Enables automatic correction of the output image size.
void mds::img::CAffineTransform< I, Interpolator >::setMatrix | ( | const tMatrix & | m | ) |
Changes the transformation matrix.
CImageTransform& mds::img::CImageTransform< I, Interpolator >::setOptions | ( | int | Flags | ) | [inherited] |
Sets transformation settings.
tCoords3 mds::img::CAffineTransform< I, Interpolator >::warp | ( | const tCoords3 & | v | ) | const |
Forward point transformation.
void mds::img::CAffineTransform< I, Interpolator >::warp | ( | const tCoords3 & | Src, |
tCoords3 & | Dst | ||
) | const |
void mds::img::CAffineTransform< I, Interpolator >::warp2 | ( | tCoords3 & | v | ) | const |
tCoords3 mds::img::CAffineTransform< I, Interpolator >::warpBack | ( | const tCoords3 & | v | ) | const |
Backward point transformation.
void mds::img::CAffineTransform< I, Interpolator >::warpBack | ( | const tCoords3 & | Src, |
tCoords3 & | Dst | ||
) | const |
void mds::img::CAffineTransform< I, Interpolator >::warpBack2 | ( | tCoords3 & | v | ) | const |
tMatrix mds::img::CAffineTransform< I, Interpolator >::m_InvMatrix [protected] |
tPixel mds::img::CImageTransform< I, Interpolator >::m_MarginValue [protected, inherited] |
Pixel value used to fill image margin.
tMatrix mds::img::CAffineTransform< I, Interpolator >::m_Matrix [protected] |
Forward and backward transformation matrix.
int mds::img::CImageTransform< I, Interpolator >::m_Options [protected, inherited] |
Transformation settings.