last update 20 Sep 2009 |
#include <cvrGeometricTransform.h>
Classes | |
class | parameters |
The parameters for the class geometricTransform. More... | |
Public Types | |
enum | eResizeMode { KeepDimensions, KeepOrigin, AdjustDimensions } |
Public Member Functions | |
geometricTransformBase () | |
geometricTransformBase (const parameters &par) | |
geometricTransformBase (const geometricTransformBase &other) | |
virtual | ~geometricTransformBase () |
geometricTransformBase & | copy (const geometricTransformBase &other) |
geometricTransformBase & | operator= (const geometricTransformBase &other) |
virtual const std::string & | name () const |
virtual geometricTransformBase * | clone () const =0 |
virtual geometricTransformBase * | newInstance () const =0 |
const parameters & | getParameters () const |
Protected Member Functions | |
parameters & | getParameters () |
This is an abstract class parent of all functors that achieve geometric transformation of images, like affine or homogeneous transformations. It contains the basic parameters that are not template dependent.
Enumeration to specified how the dimensions of the resulting image has to be computed.
KeepDimensions | Keep the dimensions of the original image, including the relative position of the origin. |
KeepOrigin | Keep the origin relative position, but adjust the rest of the dimensions to hold the complete transformed image. |
AdjustDimensions |
Adjust the dimension of the resulting image to contain the whole transformed image.
This implies loosing the relative position of the origin. |
cvr::geometricTransformBase::geometricTransformBase | ( | ) |
Default constructor.
cvr::geometricTransformBase::geometricTransformBase | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
cvr::geometricTransformBase::geometricTransformBase | ( | const geometricTransformBase & | other | ) |
virtual cvr::geometricTransformBase::~geometricTransformBase | ( | ) | [virtual] |
Destructor.
virtual geometricTransformBase* cvr::geometricTransformBase::clone | ( | ) | const [pure virtual] |
Returns a pointer to a clone of this functor.
Implements cvr::functor.
Implemented in cvr::geometricTransform< I >, cvr::matrixTransform< I >, and cvr::geometricTransform< I >.
geometricTransformBase& cvr::geometricTransformBase::copy | ( | const geometricTransformBase & | other | ) |
parameters& cvr::geometricTransformBase::getParameters | ( | ) | [protected] |
Returns used parameters.
Reimplemented from cvr::parametersManager.
Reimplemented in cvr::geometricTransform< I >, cvr::matrixTransform< I >, and cvr::geometricTransform< I >.
const parameters& cvr::geometricTransformBase::getParameters | ( | ) | const |
Returns used parameters.
Reimplemented from cvr::parametersManager.
Reimplemented in cvr::geometricTransform< I >, cvr::matrixTransform< I >, and cvr::geometricTransform< I >.
virtual const std::string& cvr::geometricTransformBase::name | ( | ) | const [virtual] |
Returns the complete name of the functor class.
Implements cvr::functor.
Reimplemented in cvr::geometricTransform< I >, cvr::matrixTransform< I >, and cvr::geometricTransform< I >.
virtual geometricTransformBase* cvr::geometricTransformBase::newInstance | ( | ) | const [pure virtual] |
Returns a pointer to a new instance of this functor.
Implements cvr::functor.
Implemented in cvr::geometricTransform< I >, cvr::matrixTransform< I >, and cvr::geometricTransform< I >.
geometricTransformBase& cvr::geometricTransformBase::operator= | ( | const geometricTransformBase & | other | ) |