![]() |
IDS peak ICV v1.2.0
|
#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 |
| Sets the enabled state of this module. | |
| bool | IsEnabled () const override |
| Checks if the 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 411 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 453 of file peak_icv_transformation_module.hpp.
|
inline |
Gets the current rotation angle.
Definition at line 511 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 406 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Checks if the module is currently enabled.
Implements IModule.
Definition at line 401 of file peak_icv_transformation_module.hpp.
|
inline |
Gets the current left-right mirroring setting.
Definition at line 492 of file peak_icv_transformation_module.hpp.
|
inline |
Gets the current up-down mirroring setting.
Definition at line 497 of file peak_icv_transformation_module.hpp.
|
delete |
Copy assignment for class TransformationModule is deleted.
|
inlinenoexcept |
Definition at line 420 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 521 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 516 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Resets all settings to the default values for mirror and rotation.
Implements IModule.
Definition at line 475 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 434 of file peak_icv_transformation_module.hpp.
|
inlineoverridevirtual |
Sets the enabled state of this module.
| enabled | If true, the module is enabled; otherwise, it is disabled. |
Implements IModule.
Definition at line 395 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 482 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 487 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 502 of file peak_icv_transformation_module.hpp.