![]() |
IDS peak IPL
v1.9.2
|
Performs transformations like mirror and rotate on images. More...
#include <peak_ipl/algorithm/peak_ipl_image_transformer.hpp>
Public Types | |
| enum | RotationAngle : uint16_t { RotationAngle::Degree90Counterclockwise = 90, RotationAngle::Degree90Clockwise = 270, RotationAngle::Degree180 = 180 } |
| Angle parameter for the Rotation algorithm. More... | |
Public Member Functions | |
| ImageTransformer () | |
| Constructor for a new ImageTransformer instance. More... | |
| ~ImageTransformer () | |
| Destructor for the ImageTransformer instance. More... | |
| ImageTransformer (const ImageTransformer &other) | |
| Copy Constructor for a new ImageTransformer instance. More... | |
| ImageTransformer & | operator= (const ImageTransformer &other) |
| Copy assigment for ImageTransformer instance. More... | |
| ImageTransformer (ImageTransformer &&other) noexcept | |
| Move constructor for ImageTransformer instance. More... | |
| ImageTransformer & | operator= (ImageTransformer &&other) noexcept |
| Move assignment for ImageTransformer instance. More... | |
| void | MirrorUpDownInPlace (Image &image) const |
| Mirrors the given image in up-down direction in place i.e. it will change the input image itself. More... | |
| void | MirrorLeftRightInPlace (Image &image) const |
| Mirrors the given image in the left-right direction in place i.e. it will change the input image itself. More... | |
| void | MirrorUpDownLeftRightInPlace (Image &image) const |
| Mirrors the given image in up-down and left-right direction in place i.e. it will change the input image itself. More... | |
| void | RotateInPlace (Image &image, RotationAngle rotationAngle) const |
| Rotate the input image with the given rotationAngle. More... | |
Public Attributes | |
| PEAK_IPL_MAYBE_UNUSED = Image MirrorUpDown(const Image& inputImage) const | |
Performs transformations like mirror and rotate on images.
|
strong |
|
inline |
|
inline |
|
inline |
Copy Constructor for a new ImageTransformer instance.
Creates a new ImageTransformer instance.
| [in] | other | The other instance to acquire a reference for. |
|
inlinenoexcept |
Move constructor for ImageTransformer instance.
Moves the instance from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move. |
|
inline |
Mirrors the given image in the left-right direction in place i.e. it will change the input image itself.
If the transformed image is a bayer-format image and the number of columns is even, the format will change. (e.g. BayerBG8 -> BayerGB8)
| [in,out] | image | The handle to the image to mirror |
| ImageFormatNotSupportedException | image has a packed pixel format |
| Exception | An internal error has occurred. |
|
inline |
Mirrors the given image in up-down direction in place i.e. it will change the input image itself.
If the transformed image is a bayer-format image and the number of rows is even, the format will change. (e.g. BayerBG8 -> BayerGR8)
| [in,out] | image | The handle to the image to mirror |
| ImageFormatNotSupportedException | image has a packed pixel format |
| Exception | An internal error has occurred. |
|
inline |
Mirrors the given image in up-down and left-right direction in place i.e. it will change the input image itself.
If the transformed image is a bayer-format image and the number of rows or columns are even, the format will change. (e.g. BayerBG8 -> BayerRG8)
| [in,out] | image | The handle to the image to mirror |
| ImageFormatNotSupportedException | image has a packed pixel format |
| Exception | An internal error has occurred. |
|
inline |
Copy assigment for ImageTransformer instance.
Acquires a reference from other to this instance. If this instance already has a reference, it will be destroyed.
| [in] | other | The other instance to acquire a reference for. |
|
inlinenoexcept |
Move assignment for ImageTransformer instance.
Moves the instance from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move. |
|
inline |
Rotate the input image with the given rotationAngle.
If the transformed image is a bayer-format image and the number of rows or columns are even, the format will change. (e.g. BayerBG8 -> BayerRG8)
| [in,out] | image | The handle to the created image. |
| [in] | rotationAngle | The rotation angle. |
| ImageFormatNotSupportedException | image has a packed pixel format |
| Exception | An internal error has occurred. |
| peak::ipl::ImageTransformer::PEAK_IPL_MAYBE_UNUSED = Image MirrorUpDown(const Image& inputImage) const |