eLynx SDK
v3.0.1 C++ image processing API reference |
#include <AbstractTransformation.h>
Public Member Functions | |
AbstractTransformation () | |
Constructor, creates uninitialized transformation. | |
virtual | ~AbstractTransformation () |
virtual boost::shared_ptr < AbstractTransformation > | Clone () const =0 |
virtual bool | IsIdentity () const =0 |
virtual void | Transform (double iX, double iY, double &oX, double &oY) const =0 |
virtual void | GetTransformedBBox (uint32 iWidth, uint32 iHeight, double &oLeft, double &oTop, double &oWidth, double &oHeight) const =0 |
virtual void | InverseTransform (double iX, double iY, double &oX, double &oY) const =0 |
virtual void | GetInverseBBox (uint32 iWidth, uint32 iHeight, double &oLeft, double &oTop, double &oWidth, double &oHeight) const =0 |
Definition at line 40 of file AbstractTransformation.h.
eLynx::Math::AbstractTransformation::AbstractTransformation | ( | ) | [inline] |
Constructor, creates uninitialized transformation.
Definition at line 45 of file AbstractTransformation.h.
virtual eLynx::Math::AbstractTransformation::~AbstractTransformation | ( | ) | [inline, virtual] |
Virtual destructor, provided to ensure destructor virtuality in descendants.
Definition at line 49 of file AbstractTransformation.h.
virtual boost::shared_ptr<AbstractTransformation> eLynx::Math::AbstractTransformation::Clone | ( | ) | const [pure virtual] |
Creates and returns copy of this object. This method should be used in copy constructors of objects, that holds pointer to AbstractTransformation object.
Implemented in eLynx::Math::LinearTransformation.
virtual bool eLynx::Math::AbstractTransformation::IsIdentity | ( | ) | const [pure virtual] |
Abstract method, returns true if actual transformation is identity transformation. Can be used to speed up the processing.
Implemented in eLynx::Math::LinearTransformation.
virtual void eLynx::Math::AbstractTransformation::Transform | ( | double | iX, | |
double | iY, | |||
double & | oX, | |||
double & | oY | |||
) | const [pure virtual] |
Abstract method, which transforms point position in the coordinate space of the first plane, into position in the coordinate space of the second plane.
iX | the x coordinate of the point on the first plane. | |
iY | the y coordinate of the point on the first plane. | |
oX | the x position on the second plane. | |
oY | the y position on the second plane. |
Implemented in eLynx::Math::LinearTransformation.
virtual void eLynx::Math::AbstractTransformation::GetTransformedBBox | ( | uint32 | iWidth, | |
uint32 | iHeight, | |||
double & | oLeft, | |||
double & | oTop, | |||
double & | oWidth, | |||
double & | oHeight | |||
) | const [pure virtual] |
Abstract method, which computes bounding box of the transformed (second) image in the coordinate space of the first image. First image has a bounding box (0, 0)-(iWidth, iHeight). Second image has a bounding box (oLeft, oTop)-(oLeft+oWidth, oTop+oHeight).
iWidth | the width of the first image | |
iHeight | the height of the first image | |
oLeft | the left coordinate of the second image bounding box | |
oTop | the top coordinate of the second image bounding box | |
oWidth | the width of the second image bounding box | |
oHeight | the height of the second image bounding box |
Implemented in eLynx::Math::LinearTransformation.
virtual void eLynx::Math::AbstractTransformation::InverseTransform | ( | double | iX, | |
double | iY, | |||
double & | oX, | |||
double & | oY | |||
) | const [pure virtual] |
Abstract method, which transforms position of the pixel in the coordinate space of the second image, into position in the coordinate space of the first image.
iX | the x coordinate of the pixel on the second image | |
iY | the y coordinate of the pixel on the second image | |
oX | the x position on the first image | |
oY | the y position on the first image |
Implemented in eLynx::Math::LinearTransformation.
virtual void eLynx::Math::AbstractTransformation::GetInverseBBox | ( | uint32 | iWidth, | |
uint32 | iHeight, | |||
double & | oLeft, | |||
double & | oTop, | |||
double & | oWidth, | |||
double & | oHeight | |||
) | const [pure virtual] |
Abstract method, which computes bounding box of the original (first) image in the coordinate space of the second image. Second image has a bounding box (0, 0)-(iWidth, iHeight). First image has a bounding box (oLeft, oTop)-(oLeft+oWidth, oTop+oHeight).
iWidth | the width of the second image | |
iHeight | the height of the second image | |
oLeft | the left coordinate of the first image bounding box | |
oTop | the top coordinate of the first image bounding box | |
oWidth | the width of the first image bounding box | |
oHeight | the height of the first image bounding box |
Implemented in eLynx::Math::LinearTransformation.