8 Mirror provides functionality to flip the image left-right or up-down.
10 @supportedPixelformats{ImageTransformation}
12 @note When processing images with a Bayer pattern, the result may have a different pixel format,
13 though the bit depth remains unchanged. Ensure your application can handle potential pixel format changes
16 The default value is no mirroring.
18 @since ids_peak_icv 1.0
19 @ingroup ids_peak_icv_python_pipeline_features
26 Indicates whether the feature is currently enabled.
27 @return True if enabled; otherwise, False.
29 @since ids_peak_icv 1.0
31 return self.
_module._mirror_enabled
37 Enables or disables the feature.
38 @param value: Set to True to enable the feature, or False to disable it.
40 @since ids_peak_icv 1.0
42 self.
_module._mirror_enabled = value
48 Gets the current left-right mirroring setting.
50 @return True if left-right mirroring is enabled so that left and right will be flipped.
52 @since ids_peak_icv 1.0
54 return self.
_module.mirror_left_right
56 @left_right_enabled.setter
60 Sets whether the image should be mirrored left-right.
62 @param value: If true, the image will be mirrored along the vertical axis.
64 @since ids_peak_icv 1.0
66 self.
_module.mirror_left_right = value
72 Gets the current up-down mirroring setting.
74 @return True if up-down mirroring is enabled so that up and down will be flipped.
76 @since ids_peak_icv 1.0
78 return self.
_module.mirror_up_down
80 @up_down_enabled.setter
84 Sets whether the image should be mirrored up-down.
86 @param value: If true, the image will be mirrored along the horizontal axis.
88 @since ids_peak_icv 1.0
90 self.
_module.mirror_up_down = value
95 Resets the mirroring to no mirroring.
97 @note The enabled state does not change when calling this function.
99 @since ids_peak_icv 1.0
103 def __init__(self, module: TransformationModule) ->
None:
106 Creates a MirrorFeature for an existing transformation module.
108 @param module: Reference to the underlying TransformationModule.
110 @since ids_peak_icv 1.0
Abstract base class for all image processing pipeline features.
Mirror provides functionality to flip the image left-right or up-down.
None reset_to_default(self)
Resets the mirroring to no mirroring.
bool up_down_enabled(self)
Gets the current up-down mirroring setting.
bool left_right_enabled(self)
Gets the current left-right mirroring setting.
None __init__(self, TransformationModule module)
Creates a MirrorFeature for an existing transformation module.
bool enabled(self)
Indicates whether the feature is currently enabled.