9 Rotation provides fixed-angle rotation functionality.
11 @supportedPixelformats{ImageTransformation}
13 This feature rotates images in 90-degree increments, based on the rotation mode set via the angle property.
15 @warning When processing images with a Bayer pattern, the result may have a different pixel format,
16 though the bit depth remains unchanged. Ensure your application can handle potential pixel format changes
19 The default rotation is Rotation.NO_ROTATION.
21 @ingroup ids_peak_icv_python_pipeline_features
23 @since ids_peak_icv 1.0
30 Gets whether this feature is currently enabled.
32 @return True if enabled; otherwise False.
34 @since ids_peak_icv 1.0
36 return self.
_module._rotation_enabled
42 Enables or disables the feature.
44 @param enabled: True to enable, False to disable.
46 @since ids_peak_icv 1.0
48 self.
_module._rotation_enabled = enabled
54 Gets the current rotation angle.
56 @return The currently configured rotation angle.
58 @since ids_peak_icv 1.0
60 return self.
_module.rotation_angle
63 def angle(self, angle: Rotation) ->
None:
66 Sets the desired rotation angle.
68 @param angle: The rotation angle to apply (see RotationAngle enum).
70 @since ids_peak_icv 1.0
72 self.
_module.rotation_angle = angle
77 Resets the rotation to its default value (Rotation.NO_ROTATION).
79 @note The enabled state does not change when calling this function.
81 @since ids_peak_icv 1.0
85 def __init__(self, module: TransformationModule) ->
None:
88 Creates a RotationFeature for an existing transformation module.
90 @param module: Reference to the underlying TransformationModule.
92 @since ids_peak_icv 1.0
Abstract base class for all image processing pipeline features.
Rotation provides fixed-angle rotation functionality.
None reset_to_default(self)
Resets the rotation to its default value (Rotation.NO_ROTATION).
Rotation angle(self)
Gets the current rotation angle.
None __init__(self, TransformationModule module)
Creates a RotationFeature for an existing transformation module.
bool enabled(self)
Gets whether this feature is currently enabled.