STIRA
0.1
|
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>
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... | |
Image * | RotateAroundCenter (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 | |
Image * | Apply (Image *pImageIn) |
generates new forward transfored image More... | |
Image * | ApplyInverse (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 |
Interpolator * | mpInterpolator |
More... | |
class to apply rigid transform to an image x' = cos(t) * x - sin(t) * y + dx y' = sin(t) * x + cos(t) * y + dy
Generates new image by rotating pImageIn around its center over an angle theta.
pImageIn | input image to rotate |
theta | angle 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.
pGridIn | input grid to rotate |
theta | angle 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
dx | the new value for the dx parameter |
void stira::imagetools::RigidTransform::SetDeltaY | ( | double | dy | ) |
sets the dy parameter of the affine transform
dy | the new value for the dy parameter |
void stira::imagetools::RigidTransform::SetTheta | ( | double | theta | ) |
sets the rotation angle
theta | the rotation angle |