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 Indicates whether the feature is currently enabled.
31 @return True if enabled; otherwise, False.
33 @since ids_peak_icv 1.0
35 return self.
_module._rotation_enabled
41 Enables or disables the feature.
42 @param value: Set to True to enable the feature, or False to disable it.
44 @since ids_peak_icv 1.0
46 self.
_module._rotation_enabled = value
52 Gets the current rotation angle.
54 @return The currently configured rotation angle.
56 @since ids_peak_icv 1.0
58 return self.
_module.rotation_angle
61 def angle(self, angle: Rotation) ->
None:
64 Sets the desired rotation angle.
66 @param angle: The rotation angle to apply (see RotationAngle enum).
68 @since ids_peak_icv 1.0
70 self.
_module.rotation_angle = angle
75 Resets the rotation to Rotation.NO_ROTATION.
77 @note The enabled state does not change when calling this function.
79 @since ids_peak_icv 1.0
83 def __init__(self, module: TransformationModule) ->
None:
86 Creates a RotationFeature for an existing transformation module.
88 @param module: Reference to the underlying TransformationModule.
90 @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 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)
Indicates whether the feature is currently enabled.