STIRA  0.1
Public Member Functions | List of all members
stira::imagetools::AffineTransform Class Reference

class to apply affine transform to an image x' = a11 * x + a12 * y + dx y' = a21 * x + a22 * y + dy More...

#include <AffineTransform.h>

Inheritance diagram for stira::imagetools::AffineTransform:
stira::imagetools::GeometricTransform

Public Member Functions

 AffineTransform ()
 constructor
 
 ~AffineTransform ()
 destructor
 
void SetA11 (double a11)
 sets the a11 parameter of the affine transform More...
 
double GetA11 ()
 gets the a_11 parameter of the affine transform
 
void SetA12 (double a12)
 sets the a_12 parameter of the affine transform More...
 
double GetA12 ()
 gets the a_12 parameter of the affine transform
 
void SetA21 (double a21)
 sets the a21 parameter of the affine transform More...
 
double GetA21 ()
 gets the a_21 parameter of the affine transform
 
void SetA22 (double a22)
 sets the a22 parameter of the affine transform More...
 
double GetA22 ()
 gets the a_22 parameter of the affine transform
 
void SetDeltaX (double dx)
 sets the parameter of the translation in the x direction (dx) More...
 
double GetDeltaX ()
 gets the parameter of the translation in the x direction
 
void SetDeltaY (double dy)
 sets the parameter of the translation in the y direction (dy) More...
 
double GetDeltaY ()
 gets the parameter of the translation in the y direction
 
double GetDeterminant ()
 gets the determinant of the affine transform matrix
 
virtual common::Point< double > GetTransformedPoint (double x, double y)
 computes coordinates of point after applying forward transform More...
 
virtual common::Point< double > GetInverseTransformedPoint (double x, double y)
 computes coordinates of point after applying inverse transform More...
 
- Public Member Functions inherited from stira::imagetools::GeometricTransform
 GeometricTransform ()
 constructor
 
 ~GeometricTransform ()
 destructor
 
ImageApply (Image *pImageIn)
 generates new forward transfored image More...
 
ImageApplyInverse (Image *pImageIn)
 generates new inverse transfored image More...
 
void SetInterpolatorType (InterpolatorType type)
 sets the interpolatortype to 'type' More...
 
InterpolatorType GetInterpolatorType ()
 gets the interpolatortype
 

Additional Inherited Members

- Protected Attributes inherited from stira::imagetools::GeometricTransform
InterpolatorType mInterpolatorType
 
InterpolatormpInterpolator
 

type of interpolation to apply

More...
 

Detailed Description

class to apply affine transform to an image x' = a11 * x + a12 * y + dx y' = a21 * x + a22 * y + dy

Member Function Documentation

Point< double > stira::imagetools::AffineTransform::GetInverseTransformedPoint ( double  x,
double  y 
)
virtual

computes coordinates of point after applying inverse transform

Parameters
xx coordinate of point to transform
yy coordinate of point to transform

Implements stira::imagetools::GeometricTransform.

Point< double > stira::imagetools::AffineTransform::GetTransformedPoint ( double  x,
double  y 
)
virtual

computes coordinates of point after applying forward transform

Parameters
xx coordinate of point to transform
yy coordinate of point to transform

Implements stira::imagetools::GeometricTransform.

void stira::imagetools::AffineTransform::SetA11 ( double  a11)

sets the a11 parameter of the affine transform

Parameters
a11the new value for the a11 parameter
void stira::imagetools::AffineTransform::SetA12 ( double  a12)

sets the a_12 parameter of the affine transform

Parameters
a12the new value for the a11 parameter
void stira::imagetools::AffineTransform::SetA21 ( double  a21)

sets the a21 parameter of the affine transform

Parameters
a21the new value for the a11 parameter
void stira::imagetools::AffineTransform::SetA22 ( double  a22)

sets the a22 parameter of the affine transform

Parameters
a22the new value for the a11 parameter
void stira::imagetools::AffineTransform::SetDeltaX ( double  dx)

sets the parameter of the translation in the x direction (dx)

Parameters
dxthe new value for the dx parameter
void stira::imagetools::AffineTransform::SetDeltaY ( double  dy)

sets the parameter of the translation in the y direction (dy)

Parameters
dythe new value for the dy parameter

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