IDS peak ICV v1.2.0
Loading...
Searching...
No Matches
igain_module.py
Go to the documentation of this file.
1from abc import abstractmethod
2
4
5
7 """!
8 @brief
9 Interface for modules that provide gain control functionality.
10
11 A gain module consists of a master gain value applied to all channels,
12 along with individual gain values for the red, green, and blue channels.
13
14 @since ids_peak_common 1.1
15 @ingroup ids_peak_common_python_pipeline_modules
16 """
17
18 @property
19 @abstractmethod
20 def master(self) -> float:
21 """!
22 @brief
23 Retrieves the current master gain value.
24
25 @return The master gain value.
26
27 @since ids_peak_common 1.1
28 """
29 pass
30
31 @master.setter
32 @abstractmethod
33 def master(self, value: float) -> None:
34 """!
35 @brief
36 Sets the master gain value.
37
38 This value is applied uniformly to all color channels.
39
40 @param value: The master gain value to apply.
41
42 @since ids_peak_common 1.1
43 """
44 pass
45
46 @property
47 @abstractmethod
48 def red(self) -> float:
49 """!
50 @brief
51 Retrieves the gain value for the red channel.
52
53 @return The red channel gain value.
54
55 @since ids_peak_common 1.1
56 """
57 pass
58
59 @red.setter
60 @abstractmethod
61 def red(self, value: float) -> None:
62 """!
63 @brief
64 Sets the gain value for the red channel.
65
66 @param value: The gain value for the red channel.
67
68 @since ids_peak_common 1.1
69 """
70 pass
71
72 @property
73 @abstractmethod
74 def green(self) -> float:
75 """!
76 @brief
77 Retrieves the gain value for the green channel.
78
79 @return The green channel gain value.
80
81 @since ids_peak_common 1.1
82 """
83 pass
84
85 @green.setter
86 @abstractmethod
87 def green(self, value: float) -> None:
88 """!
89 @brief
90 Sets the gain value for the green channel.
91
92 @param value: The gain value for the green channel.
93
94 @since ids_peak_common 1.1
95 """
96 pass
97
98 @property
99 @abstractmethod
100 def blue(self) -> float:
101 """!
102 @brief
103 Retrieves the gain value for the blue channel.
104
105 @return The blue channel gain value.
106
107 @since ids_peak_common 1.1
108 """
109 pass
110
111 @blue.setter
112 @abstractmethod
113 def blue(self, value: float) -> None:
114 """!
115 @brief
116 Sets the gain value for the blue channel.
117
118 @param value: The gain value for the blue channel.
119
120 @since ids_peak_common 1.1
121 """
122 pass
Interface for modules that provide gain control functionality.
float red(self)
Retrieves the gain value for the red channel.
float green(self)
Retrieves the gain value for the green channel.
float blue(self)
Retrieves the gain value for the blue channel.
float master(self)
Retrieves the current master gain value.
Interface for a module used within a pipeline.
Definition imodule.py:9