#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.
|
default |
Creates a TransformationModule module with default values for mirror and rotation.
|
overridedefault |
|
delete |
Copy constructor for class TransformationModule is deleted.
|
inlinenoexcept |
|
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.
|
inline |
Gets the current rotation angle.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false.Implements IModule.
|
inline |
Gets the current left-right mirroring setting.
|
inline |
Gets the current up-down mirroring setting.
|
delete |
Copy assignment for class TransformationModule is deleted.
|
inlinenoexcept |
|
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.
|
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. |
|
inlineoverridevirtual |
Resets all settings to the default values for mirror and rotation.
Implements IModule.
|
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.
|
inlineoverridevirtual |
Enables or disables the module.
| enabled | Set to true to enable, or false to disable. |
Implements IModule.
|
inline |
Sets whether the image should be mirrored left-right.
| enabled | If true, the image will be mirrored along the vertical axis. |
|
inline |
Sets whether the image should be mirrored up-down.
| enabled | If true, the image will be mirrored along the horizontal axis. |
|
inline |
Sets the desired rotation angle.
| angle | The rotation angle to apply (see Rotation enum). |