IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
iautofeature_module.py
Go to the documentation of this file.
1from abc import abstractmethod
2from typing import Sequence
3
4from ids_peak_common.pipeline.modules.igain_module import IGain
5from ids_peak_common.pipeline.modules.imodule import IModule
6
7
8class IAutoFeature(IModule):
9 """!
10 @brief
11 Interface for modules that provide auto feature functionality.
12 Defines the necessary functions that any auto feature module must implement.
13
14 @since ids_peak_common 1.1
15 @ingroup ids_peak_common_python_pipeline_modules
16 """
17
18 @abstractmethod
19 def set_gain_module(self, gain_module: IGain | None) -> None:
20 """!
21 @brief
22 Called by the pipeline to set the gain module for the auto feature module.
23
24 This function provides the gain module that the auto feature module can use
25 to apply gain adjustments as needed.
26
27 @param gain_module: The gain module to be controlled by the auto feature module
28 or ``None`` if no gain module should be set.
29
30 @since ids_peak_common 1.1
31 """
32 pass
33
34 @abstractmethod
35 def set_color_correction_matrix(self, matrix: Sequence[float]) -> None:
36 """!
37 @brief
38 Notifies the auto feature module of the currently used color correction matrix.
39
40 Allows the auto feature module to adjust its algorithms and gain values based on
41 the provided color correction matrix.
42
43 @param matrix: The 3x3 color correction matrix in row-major order that is
44 currently in use.
45
46 @since ids_peak_common 1.1
47 """
48
49 pass
Interface for modules that provide auto feature functionality.
None set_gain_module(self, IGain|None gain_module)
Called by the pipeline to set the gain module for the auto feature module.
None set_color_correction_matrix(self, Sequence[float] matrix)
Notifies the auto feature module of the currently used color correction matrix.