#include <peak_icv/pipeline/detail/peak_icv_transformation_module.hpp>

Public Member Functions | |
| TransformationModule ()=default | |
| Creates a TransformationModule module with default values for mirror and rotation. | |
| ~TransformationModule () override=default | |
| TransformationModule (const TransformationModule &other)=delete | |
| Copy constructor for class TransformationModule is deleted. | |
| TransformationModule (TransformationModule &&other) noexcept | |
| TransformationModule & | operator= (const TransformationModule &other)=delete |
| Copy assignment for class TransformationModule is deleted. | |
| TransformationModule & | operator= (TransformationModule &&other) noexcept |
| void | Serialize (peak::common::serialization::IArchive &archive) const override |
| Serializes the object's internal state into the provided archive. | |
| void | Deserialize (const peak::common::serialization::IArchive &archive) override |
| Restores the object's state from the provided archive. | |
| void | SetEnabled (bool enabled) override |
| Enables or disables the module. | |
| bool | IsEnabled () const override |
| Gets whether this module is currently enabled. | |
| const char * | GetType () const override |
| Returns the type of the module for serialization purposes. | |
| void | ResetToDefault () override |
| Resets all settings to the default values for mirror and rotation. | |
| void | SetMirrorLeftRightEnabled (bool enabled) |
| Sets whether the image should be mirrored left-right. | |
| void | SetMirrorUpDownEnabled (bool enabled) |
| Sets whether the image should be mirrored up-down. | |
| bool | IsMirrorLeftRightEnabled () const |
| Gets the current left-right mirroring setting. | |
| bool | IsMirrorUpDownEnabled () const |
| Gets the current up-down mirroring setting. | |
| void | SetRotationAngle (Rotation angle) |
| Sets the desired rotation angle. | |
| Rotation | GetRotationAngle () const |
| Gets the current rotation angle. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Processes the input image and returns a mirrored and/or rotated copy based on current settings. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Processes the input image and returns a mirrored and/or rotated copy based on current settings. | |
Transformation is an image pipeline module that provides mirror and rotation functionality.
Definition at line 40 of file peak_icv_transformation_module.hpp.
|
default |
Creates a TransformationModule module with default values for mirror and rotation.
|
overridedefault |
|
delete |
Copy constructor for class TransformationModule is deleted.
|
inlinenoexcept |
Definition at line 413 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Restores the object's state from the provided archive.
This function reads and applies all necessary parameters from the given archive to reconstruct the internal state of the object. It ensures that the object is restored to a valid and consistent state.
| archive | The source archive containing the serialized parameters. |
| CorruptedException | If Archive is malformed, misses keys or the values are invalid |
| NotSupportedException | If the 'Version' entry indicates an unsupported version or if the rotation angle is not transformable into peak::pipeline::Rotation. |
Implements ISerializable.
Definition at line 455 of file peak_icv_transformation_module.hpp.
|
inline |
Gets the current rotation angle.
Definition at line 513 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 408 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false.Implements IModule.
Definition at line 403 of file peak_icv_transformation_module.hpp.
|
inline |
Gets the current left-right mirroring setting.
Definition at line 494 of file peak_icv_transformation_module.hpp.
|
inline |
Gets the current up-down mirroring setting.
Definition at line 499 of file peak_icv_transformation_module.hpp.
|
delete |
Copy assignment for class TransformationModule is deleted.
|
inlinenoexcept |
Definition at line 422 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Processes the input image and returns a mirrored and/or rotated copy based on current settings.
|
|
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
| input | The input image to be processed. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Implements IModule.
Definition at line 523 of file peak_icv_transformation_module.hpp.
|
inline |
Processes the input image and returns a mirrored and/or rotated copy based on current settings.
|
|
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
| input | The input image to be processed. |
| NotSupportedException | If image has any other than the supported pixel formats. |
Definition at line 518 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Resets all settings to the default values for mirror and rotation.
Implements IModule.
Definition at line 477 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Serializes the object's internal state into the provided archive.
This function populates the given archive with all parameters required to fully represent the current state of the object. It ensures that the object can be reconstructed or transmitted accurately by saving all relevant data members in a consistent and structured format.
| archive | The target archive that will store the serialized parameters. |
Implements ISerializable.
Definition at line 436 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Enables or disables the module.
| enabled | Set to true to enable, or false to disable. |
Implements IModule.
Definition at line 397 of file peak_icv_transformation_module.hpp.
|
inline |
Sets whether the image should be mirrored left-right.
| enabled | If true, the image will be mirrored along the vertical axis. |
Definition at line 484 of file peak_icv_transformation_module.hpp.
|
inline |
Sets whether the image should be mirrored up-down.
| enabled | If true, the image will be mirrored along the horizontal axis. |
Definition at line 489 of file peak_icv_transformation_module.hpp.
|
inline |
Sets the desired rotation angle.
| angle | The rotation angle to apply (see Rotation enum). |
Definition at line 504 of file peak_icv_transformation_module.hpp.