![]() |
IDS peak IPL
v1.6.0
|
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 () | |
| ~ImageTransformer () | |
| ImageTransformer (const ImageTransformer &other)=delete | |
| ImageTransformer & | operator= (const ImageTransformer &other)=delete |
| ImageTransformer (ImageTransformer &&other) | |
| ImageTransformer & | operator= (ImageTransformer &&other) |
| Image | MirrorUpDown (const Image &inputImage) const |
| Mirrors the input image in up-down direction. More... | |
| Image | MirrorLeftRight (const Image &inputImage) const |
| Mirrors the input image in left-right direction. More... | |
| Image | MirrorUpDownLeftRight (const Image &inputImage) const |
| Mirrors the input image in up-down and left-right direction. 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 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... | |
| Image | Rotate (const Image &inputImage, RotationAngle rotationAngle) const |
| Rotate the input image with the given rotationAngle. More... | |
| void | RotateInPlace (Image &image, RotationAngle rotationAngle) const |
| Rotate the input image with the given rotationAngle. More... | |
Performs transformations like mirror and rotate on images.
|
strong |
|
inline |
|
inline |
|
delete |
|
inline |
Mirrors the input image in left-right direction.
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] | inputImage | The handle to the created image. |
| ImageFormatNotSupportedException | inputImage has packed pixel format |
| Exception | An internal error has occurred. |
|
inline |
Mirrors the given image in 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 packed pixel format |
| Exception | An internal error has occurred. |
Mirrors the input image in up-down direction.
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] | inputImage | The handle to the created image. |
| ImageFormatNotSupportedException | inputImage has 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 packed pixel format |
| Exception | An internal error has occurred. |
Mirrors the input image in up-down and left-right direction.
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] | inputImage | The handle to the created image. |
| ImageFormatNotSupportedException | inputImage has 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 packed pixel format |
| Exception | An internal error has occurred. |
|
delete |
|
inline |
|
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] | inputImage | The handle to the created image. |
| [in] | rotationAngle | The rotation angle. |
| ImageFormatNotSupportedException | inputImage has packed pixel format |
| Exception | An internal error has occurred. |
|
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 packed pixel format |
| Exception | An internal error has occurred. |