![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Vision/FeatureDetection.h>
Implementation of the SIFT feature detection and description algorithm. More...
Inheritance diagram for SIFTFeatureDetector:Implementation of the SIFT feature detection and description algorithm.
Public Member Functions | |
| SIFTFeatureDetector () | |
| Default constructor. | |
| ~SIFTFeatureDetector () | |
| Destructor. | |
| std::string | name () const override |
| Return name of detector. | |
| std::vector< Keypoint > | detect (SharedImage &img) override |
| Detect SIFT keypoints in image. | |
| bool | setMaxFeatures (int v) override |
| Set maximum number of features. | |
| int | maxFeatures () const override |
| Get maximum number of features. | |
| void | setThreshold (double threshold) override |
| Set contrast threshold. | |
| double | threshold () const override |
| Get contrast threshold. | |
Public Member Functions inherited from FeatureDetectorWithAdaptiveThreshold | |
| FeatureDetectorWithAdaptiveThreshold () | |
| Default constructor. | |
| std::vector< Keypoint > | detectAdaptive (SharedImage &img) |
| Runs the detection by iteratively adapting a max number of features and a threshold. | |
| virtual std::unique_ptr< KeyPointIterator > | initKeypointIterator (const std::vector< Keypoint > &keypoints) |
| Instantiate keypoint iterator, can be overridden for custom sorting. | |
| void | configure (const Properties *p) override |
| Configure parameters from properties. | |
Public Member Functions inherited from Configurable | |
| virtual void | configuration (Properties *p) const |
| Serialize the current object configuration into the given Properties object. | |
| virtual void | configureDefaults () |
| Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
| void | registerParameter (ParameterBase *param) |
| Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
| void | unregisterParameter (const ParameterBase *param) |
| Remove the given Parameter or SubProperty from the list of registered parameters. | |
| Configurable (const Configurable &rhs) | |
| Configurable (Configurable &&rhs) noexcept | |
| Configurable & | operator= (const Configurable &) |
| Configurable & | operator= (Configurable &&) noexcept |
Public Attributes | |
| Parameter< double > | p_contrastThreshold = {"Contrast threshold", 0.04, this} |
| SIFT contrast threshold. | |
| Parameter< int > | p_nFeatures = {"Max features", 500, this} |
| Maximum number of features. | |
| Parameter< int > | p_nOctaveLayers = {"Octave layers", 3, this} |
| Number of octave layers. | |
| Parameter< double > | p_edgeThreshold = {"Edge threshold", 10, this} |
| Edge threshold. | |
| Parameter< double > | p_sigma = {"Sigma", 1.6, this} |
| Sigma for Gaussian smoothing. | |
Public Attributes inherited from FeatureDetectorWithAdaptiveThreshold | |
| Parameter< bool > | p_adaptThreshold = {"Iteratively adapt threshold", false, this} |
| Enable adaptive threshold. | |
| Parameter< int > | p_cellSize = {"Grid cell size", 100, this} |
| Size of grid cell for adaptive threshold. | |
| Parameter< double > | p_minThreshold = {"Minimum threshold", 0.0, this} |
| Minimum threshold value. | |
| Parameter< double > | p_thresholdStep = {"Threshold step", 0.0, this} |
| Step size for threshold adaptation. | |
Public Attributes inherited from Configurable | |
| Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
Additional Inherited Members | |
Protected Attributes inherited from Configurable | |
| std::vector< Param > | m_params |
| List of all registered Parameter and SubProperty instances. | |
|
inlineoverridevirtual |
Return name of detector.
Implements FeatureDetector.
|
overridevirtual |
Detect SIFT keypoints in image.
| img | SharedImage to detect features in. |
Implements FeatureDetector.
|
inlineoverridevirtual |
Set maximum number of features.
| v | Maximum number of features. |
Implements FeatureDetectorWithAdaptiveThreshold.
|
inlineoverridevirtual |
Get maximum number of features.
Implements FeatureDetectorWithAdaptiveThreshold.
|
inlineoverridevirtual |
Set contrast threshold.
| threshold | Contrast threshold value. |
Implements FeatureDetectorWithAdaptiveThreshold.
|
inlineoverridevirtual |
Get contrast threshold.
Implements FeatureDetectorWithAdaptiveThreshold.