85 : IController(manager)
86 , m_genericController(manager)
106 m_genericController.SetMode(mode);
117 return m_genericController.GetMode();
128 return m_genericController.IsRunning();
141 m_genericController.ResetToDefault();
156 m_genericController.SkipFrames().Set(value);
167 return m_genericController.SkipFrames().Get();
179 return m_genericController.SkipFrames().GetRange();
195 m_genericController.Hysteresis().Set(value);
206 return m_genericController.Hysteresis().Get();
218 return m_genericController.Hysteresis().GetRange();
234 m_genericController.SharpnessAlgorithm().Set(algorithm);
245 return m_genericController.SharpnessAlgorithm().Get();
260 m_genericController.SearchAlgorithm().Set(algorithm);
271 return m_genericController.SearchAlgorithm().Get();
287 m_genericController.FocusLimit().Set(limit);
298 return m_genericController.FocusLimit().Get();
315 m_genericController.WeightedROIs().Set(rois);
326 return m_genericController.WeightedROIs().Get();
355 return m_genericController.RegisterFinishedCallback(callback);
367 m_genericController.UnregisterFinishedCallback(callbackHandle);
371 detail::GenericAutoFocus m_genericController;
379 PEAK_COMMON_NO_DISCARD std::string
GetName()
const override
381 return "BasicAutoFocus";
395 m_genericController.Serialize(archive);
409 m_genericController.Deserialize(archive);
420 return m_genericController.GetType();
Central coordination object for automatic camera feature control.
Definition peak_afl.hpp:663
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:59
void ResetWeightedROIs() const
Resets the weighted roi to a single center ROI.
Definition peak_afl_basic_auto_focus.hpp:336
FocusSharpnessAlgorithm GetSharpnessAlgorithm() const
Gets the current sharpness algorithm.
Definition peak_afl_basic_auto_focus.hpp:243
void UnregisterFinishedCallback(IController::FinishedCallbackHandle callbackHandle)
Unregisters a previously registered finished callback.
Definition peak_afl_basic_auto_focus.hpp:365
void SetWeightedROIs(const std::vector< WeightedROI > &rois)
Sets the weighted regions of interest (ROIs) for focus evaluation.
Definition peak_afl_basic_auto_focus.hpp:313
peak::common::RangeU GetSkipFramesRange() const
Gets the valid range for the skip frames parameter.
Definition peak_afl_basic_auto_focus.hpp:177
void SetSharpnessAlgorithm(FocusSharpnessAlgorithm algorithm)
Sets the sharpness algorithm used for focus quality evaluation.
Definition peak_afl_basic_auto_focus.hpp:232
uint8_t GetHysteresis() const
Gets the current hysteresis value.
Definition peak_afl_basic_auto_focus.hpp:204
ControllerMode GetMode() const override
Gets the current operating mode of the auto-focus controller.
Definition peak_afl_basic_auto_focus.hpp:115
uint32_t GetSkipFrames() const
Gets the current number of frames being skipped.
Definition peak_afl_basic_auto_focus.hpp:165
peak::common::RangeU8 GetHysteresisRange() const
Gets the valid range for the hysteresis parameter.
Definition peak_afl_basic_auto_focus.hpp:216
void SetFocusLimit(const peak::common::Interval &limit)
Sets the focus limit range for auto-focus operations.
Definition peak_afl_basic_auto_focus.hpp:285
FocusSearchAlgorithm GetSearchAlgorithm() const
Gets the current search algorithm.
Definition peak_afl_basic_auto_focus.hpp:269
IController::FinishedCallbackHandle RegisterFinishedCallback(const IController::FinishedCallback &callback)
Registers a callback function to be called when focus operations complete.
Definition peak_afl_basic_auto_focus.hpp:353
void SetMode(ControllerMode mode) override
Sets the operating mode of the auto-focus controller.
Definition peak_afl_basic_auto_focus.hpp:104
void SetHysteresis(uint8_t value)
Sets the hysteresis value for focus operations.
Definition peak_afl_basic_auto_focus.hpp:193
peak::common::Interval GetFocusLimit() const
Gets the current focus limit range.
Definition peak_afl_basic_auto_focus.hpp:296
void SetSkipFrames(uint32_t value)
Sets the number of frames to skip during auto-focus operations.
Definition peak_afl_basic_auto_focus.hpp:154
std::vector< WeightedROI > GetWeightedROIs() const
Gets the current weighted regions of interest.
Definition peak_afl_basic_auto_focus.hpp:324
BasicAutoFocus(peak::afl::Manager &manager)
Constructs a BasicAutoFocus controller.
Definition peak_afl_basic_auto_focus.hpp:84
void ResetToDefault() override
Resets all controller parameters to their default values.
Definition peak_afl_basic_auto_focus.hpp:139
~BasicAutoFocus() override=default
Destructor.
bool IsRunning() const override
Checks if the auto-focus controller is currently running.
Definition peak_afl_basic_auto_focus.hpp:126
void SetSearchAlgorithm(FocusSearchAlgorithm algorithm)
Sets the search algorithm used for finding the optimal focus position.
Definition peak_afl_basic_auto_focus.hpp:258
Abstract base interface for all automatic controllers.
Definition peak_afl_icontroller.hpp:227
virtual std::string GetName() const =0
Gets the unique name of this controller.
virtual ControllerType GetType() const =0
Gets the type of this controller.
ControllerMode
Controller operation mode enumeration.
Definition peak_afl_icontroller.hpp:59
ControllerType
Controller type enumeration.
Definition peak_afl_icontroller.hpp:40
FocusSharpnessAlgorithm
Focus sharpness algorithm enumeration.
Definition peak_afl_sharpness_algorithm.hpp:39
FocusSearchAlgorithm
Focus search algorithm enumeration.
Definition peak_afl_search_algorithm.hpp:39
@ Center
Sets a centered ROI that is one-third of the image dimensions.
Definition peak_afl_weighted_rois.hpp:61
detail::IntervalT< int32_t > Interval
Interval with signed 32-bit integer boundaries.
Definition peak_common_interval.hpp:230
detail::RangeT< uint8_t > RangeU8
Alias for a range of 8-bit unsigned integers.
Definition peak_common_range.hpp:217
detail::RangeT< uint32_t > RangeU
Alias for a range of 32-bit unsigned integers.
Definition peak_common_range.hpp:172
Interface definitions and implementations for individual module types used within a pipeline.
Definition peak_afl_generic_auto_brightness.hpp:39
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:37