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

class to apply rigid transform to an image x' = cos(t) * x - sin(t) * y + dx y' = sin(t) * x + cos(t) * y + dy More...

#include <RigidTransform.h>

Inheritance diagram for stira::imagetools::RigidTransform:
stira::imagetools::GeometricTransform

Public Member Functions

 RigidTransform ()
 constructor
 
 ~RigidTransform ()
 destructor
 
void SetTheta (double theta)
 sets the rotation angle More...
 
void SetDeltaX (double dx)
 sets the dx parameter of the affine transform More...
 
void SetDeltaY (double dy)
 sets the dy parameter of the affine transform More...
 
ImageRotateAroundCenter (Image *pImageIn, double theta)
 Generates new image by rotating pImageIn around its center over an angle theta. More...
 
ArrayGrid< double > * RotateAroundCenter (ArrayGrid< double > *pGridIn, double theta)
 Generates new grid by rotating pGridIn around its center over an angle theta. 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 rigid transform to an image x' = cos(t) * x - sin(t) * y + dx y' = sin(t) * x + cos(t) * y + dy

Member Function Documentation

Image * stira::imagetools::RigidTransform::RotateAroundCenter ( Image pImageIn,
double  theta 
)

Generates new image by rotating pImageIn around its center over an angle theta.

Parameters
pImageIninput image to rotate
thetaangle over which to rotate the image

References stira::imagedata::Image::AddBand(), stira::imagedata::Image::GetBands(), stira::imagedata::Image::GetHeight(), stira::imagedata::Image::GetNumberOfBands(), and stira::imagedata::Image::GetWidth().

ArrayGrid< double > * stira::imagetools::RigidTransform::RotateAroundCenter ( ArrayGrid< double > *  pGridIn,
double  theta 
)

Generates new grid by rotating pGridIn around its center over an angle theta.

Parameters
pGridIninput grid to rotate
thetaangle over which to rotate the grid

References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::SetValue(), stira::common::Point< T >::x, and stira::common::Point< T >::y.

void stira::imagetools::RigidTransform::SetDeltaX ( double  dx)

sets the dx parameter of the affine transform

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

sets the dy parameter of the affine transform

Parameters
dythe new value for the dy parameter
void stira::imagetools::RigidTransform::SetTheta ( double  theta)

sets the rotation angle

Parameters
thetathe rotation angle

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