IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
mirror_feature.py
Go to the documentation of this file.
3
4
6 """!
7 @brief
8 Mirror provides functionality to flip the image left-right or up-down.
9
10 @supportedPixelformats{ImageTransformation}
11
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
14 after mirroring.
15
16 The default value is no mirroring.
17
18 @since ids_peak_icv 1.0
19 @ingroup ids_peak_icv_python_pipeline_features
20 """
21
22 @property
23 def enabled(self) -> bool:
24 """!
25 @brief
26 Gets whether this feature is currently enabled.
27
28 @return True if enabled; otherwise False.
29
30 @since ids_peak_icv 1.0
31 """
32 return self._module._mirror_enabled
33
34 @enabled.setter
35 def enabled(self, enabled: bool) -> None:
36 """!
37 @brief
38 Enables or disables the feature.
39
40 @param enabled: True to enable, False to disable.
41
42 @since ids_peak_icv 1.0
43 """
44 self._module._mirror_enabled = enabled
45
46 @property
47 def left_right_enabled(self) -> bool:
48 """!
49 @brief
50 Gets the current left-right mirroring setting.
51
52 @return True if left-right mirroring is enabled so that left and right will be flipped.
53
54 @since ids_peak_icv 1.0
55 """
56 return self._module.mirror_left_right
57
58 @left_right_enabled.setter
59 def left_right_enabled(self, value: bool) -> None:
60 """!
61 @brief
62 Sets whether the image should be mirrored left-right.
63
64 @param value: If true, the image will be mirrored along the vertical axis.
65
66 @since ids_peak_icv 1.0
67 """
68 self._module.mirror_left_right = value
69
70 @property
71 def up_down_enabled(self) -> bool:
72 """!
73 @brief
74 Gets the current up-down mirroring setting.
75
76 @return True if up-down mirroring is enabled so that up and down will be flipped.
77
78 @since ids_peak_icv 1.0
79 """
80 return self._module.mirror_up_down
81
82 @up_down_enabled.setter
83 def up_down_enabled(self, value: bool) -> None:
84 """!
85 @brief
86 Sets whether the image should be mirrored up-down.
87
88 @param value: If true, the image will be mirrored along the horizontal axis.
89
90 @since ids_peak_icv 1.0
91 """
92 self._module.mirror_up_down = value
93
94 def reset_to_default(self) -> None:
95 """!
96 @brief
97 Resets the mirroring to no mirroring.
98
99 @note The enabled state does not change when calling this function.
100
101 @since ids_peak_icv 1.0
102 """
104
105 def __init__(self, module: TransformationModule) -> None:
106 """!
107 @brief
108 Creates a MirrorFeature for an existing transformation module.
109
110 @param module: Reference to the underlying TransformationModule.
111
112 @since ids_peak_icv 1.0
113 """
114 self._module = module
Abstract base class for all image processing pipeline features.
Definition ifeature.py:6
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)
Gets whether this feature is currently enabled.