Performs transformations like mirror and rotate on images.
More...
#include <peak_ipl/algorithm/peak_ipl_image_transformer.hpp>
Performs transformations like mirror and rotate on images.
- Note
- To speed up processing instances of this class, maintain internal memory pools to reuse memory instead of allocating new memory for each transformation. The memory is freed when the instance is destroyed.
◆ RotationAngle
Angle parameter for the Rotation algorithm.
The enum holding the possible rotation angles and the rotation direction.
| Enumerator |
|---|
| Degree90Counterclockwise | |
| Degree90Clockwise | |
| Degree180 | |
◆ ImageTransformer() [1/3]
| peak::ipl::ImageTransformer::ImageTransformer |
( |
| ) |
|
|
inline |
◆ ~ImageTransformer()
| peak::ipl::ImageTransformer::~ImageTransformer |
( |
| ) |
|
|
inline |
◆ ImageTransformer() [2/3]
Copy Constructor for a new ImageTransformer instance.
Creates a new ImageTransformer instance.
- Note
- This only creates a shallow copy. See Shallow copy (since 1.8) for a detailed explanation.
- Parameters
-
| [in] | other | The other instance to acquire a reference for. |
- Since
- 1.0 Deleted
-
1.8 Implemented as shallow copy
◆ ImageTransformer() [3/3]
Move constructor for ImageTransformer instance.
Moves the instance from other to this. Afterwards other is invalid.
- Parameters
-
| [in] | other | The other instance to move. |
- Since
- 1.0
◆ MirrorLeftRight()
| Image peak::ipl::ImageTransformer::MirrorLeftRight |
( |
const Image & | inputImage | ) |
const |
|
inline |
Mirrors the input image in the 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)
- Parameters
-
| [in] | inputImage | The handle to the created image. |
- Returns
- A new created image containing the data of the input image mirrored in the left-right direction
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if inputImage has a packed pixel format
◆ MirrorLeftRightInPlace()
| void peak::ipl::ImageTransformer::MirrorLeftRightInPlace |
( |
Image & | image | ) |
const |
|
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)
- Parameters
-
| [in,out] | image | The handle to the image to mirror |
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if image has packed a pixel format
◆ MirrorUpDown()
| Image peak::ipl::ImageTransformer::MirrorUpDown |
( |
const Image & | inputImage | ) |
const |
|
inline |
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)
- Parameters
-
| [in] | inputImage | The handle to the created image. |
- Returns
- A new created image containing the data of the input image mirrored in up-down direction
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if inputImage has a packed pixel format
◆ MirrorUpDownInPlace()
| void peak::ipl::ImageTransformer::MirrorUpDownInPlace |
( |
Image & | image | ) |
const |
|
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)
- Parameters
-
| [in,out] | image | The handle to the image to mirror |
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if image has packed a pixel format
◆ MirrorUpDownLeftRight()
| Image peak::ipl::ImageTransformer::MirrorUpDownLeftRight |
( |
const Image & | inputImage | ) |
const |
|
inline |
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)
- Parameters
-
| [in] | inputImage | The handle to the created image. |
- Returns
- A new created image containing the data of the input image mirrored in up-down and left-right direction
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if inputImage has a packed pixel format
◆ MirrorUpDownLeftRightInPlace()
| void peak::ipl::ImageTransformer::MirrorUpDownLeftRightInPlace |
( |
Image & | image | ) |
const |
|
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)
- Parameters
-
| [in,out] | image | The handle to the image to mirror |
- Exceptions
-
- Since
- 1.0
-
1.2 Will throw ImageFormatNotSupportedException if image has a packed pixel format
◆ operator=() [1/2]
Copy assigment for ImageTransformer instance.
Acquires a reference from other to this instance. If this instance already has a reference, it will be destroyed.
- Note
- See Shallow copy (since 1.8) for a detailed explanation.
- Parameters
-
| [in] | other | The other instance to acquire a reference for. |
- Since
- 1.0 Deleted
-
1.8 Implemented as shallow copy
◆ operator=() [2/2]
Move assignment for ImageTransformer instance.
Moves the instance from other to this. Afterwards other is invalid.
- Parameters
-
| [in] | other | The other instance to move. |
- Since
- 1.0
◆ Rotate()
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)
- Parameters
-
| [in] | inputImage | The handle to the created image. |
| [in] | rotationAngle | The rotation angle. |
- Returns
- A new created image containing the data of the input image rotated with the given rotationAngle
- Exceptions
-
- Since
- 1.2
◆ RotateInPlace()
| void peak::ipl::ImageTransformer::RotateInPlace |
( |
Image & | image, |
|
|
RotationAngle | rotationAngle ) const |
|
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)
- Parameters
-
| [in,out] | image | The handle to the created image. |
| [in] | rotationAngle | The rotation angle. |
- Exceptions
-
- Since
- 1.2
The documentation for this class was generated from the following file: