IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
peak_icv_hotpixel_correction_feature.hpp
Go to the documentation of this file.
1
11#pragma once
12
15
16namespace peak
17{
18namespace pipeline
19{
20namespace features
21{
22
37{
38public:
39 using HotpixelList = std::vector<peak::common::Point>;
40
49
53 void SetEnabled(bool enabled) override;
54
58 PEAK_COMMON_NO_DISCARD bool IsEnabled() const override;
59
67 void ResetToDefault() override;
68
76 void SetList(const HotpixelList& hotpixels);
77
85 PEAK_COMMON_NO_DISCARD HotpixelList GetList() const;
86
96 PEAK_COMMON_NO_DISCARD peak::common::IntervalU GetSensitivityRange() const;
97
115 void Detect(const peak::icv::Image& image, uint32_t sensitivity = 3, float gainFactor = 1.0F);
116
117private:
119};
120
124
126{
127 m_module.SetEnabled(enabled);
128}
129
131{
132 return m_module.IsEnabled();
133}
134
136{
137 m_module.ResetToDefault();
138}
139
141{
142 m_module.SetList(hotpixels);
143}
144
149
154
155inline void HotpixelCorrectionFeature::Detect(const peak::icv::Image& image, uint32_t sensitivity, float gainFactor)
156{
157 m_module.Detect(image, sensitivity, gainFactor);
158}
159
160} // namespace features
161} // namespace pipeline
162} // namespace peak
Represents a continuous numeric interval with inclusive lower and upper bounds.
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
Hotpixel correction is an image pipeline module for detecting and correcting hot pixels in camera ima...
std::vector< peak::common::Point > GetList() const
Retrieves the current list of known hot pixels.
void Detect(const peak::icv::Image &image, uint32_t sensitivity=3, float gainFactor=1.0F)
Performs immediate hot pixel detection on the given image.
void SetList(const std::vector< peak::common::Point > &hotpixels)
Sets the list of known hot pixels.
void SetEnabled(bool enabled) override
Enables or disables the module.
peak::common::IntervalU GetSensitivityRange() const
Returns the valid range of sensitivities.
bool IsEnabled() const override
Gets whether this module is currently enabled.
HotpixelCorrection detects and corrects hot pixels in camera images.
void Detect(const peak::icv::Image &image, uint32_t sensitivity=3, float gainFactor=1.0F)
Performs immediate hot pixel detection on the given image.
HotpixelList GetList() const
Retrieves the current list of known hot pixels.
void SetEnabled(bool enabled) override
Enables or disables the feature.
peak::common::IntervalU GetSensitivityRange() const
Retrieves the valid range for the detection sensitivity.
void SetList(const HotpixelList &hotpixels)
Sets the list of known hot pixels.
HotpixelCorrectionFeature(detail::HotpixelCorrectionModule &module)
Creates a HotpixelCorrectionFeature for an existing hotpixel correction module.
bool IsEnabled() const override
Gets whether this feature is currently enabled.
Abstract base class for all image processing pipeline features.