#include <RawFeatureTrackerConfig.hpp>
Classes | |
| struct | Thresholds |
Public Types | |
| enum | Type : std::int32_t { Type::HARRIS, Type::SHI_THOMASI } |
Public Member Functions | |
| DEPTHAI_SERIALIZE (CornerDetector, type, cellGridDimension, numTargetFeatures, numMaxFeatures, thresholds, enableSobel, enableSorting) | |
Public Attributes | |
| std::int32_t | cellGridDimension = 4 |
| bool | enableSobel = true |
| bool | enableSorting = true |
| std::int32_t | numMaxFeatures = AUTO |
| std::int32_t | numTargetFeatures = 320 |
| Thresholds | thresholds |
| Type | type = Type::HARRIS |
Corner detector configuration structure.
Definition at line 18 of file RawFeatureTrackerConfig.hpp.
|
strong |
| Enumerator | |
|---|---|
| HARRIS | Harris corner detector. |
| SHI_THOMASI | Shi-Thomasi corner detector. |
Definition at line 19 of file RawFeatureTrackerConfig.hpp.
| dai::RawFeatureTrackerConfig::CornerDetector::DEPTHAI_SERIALIZE | ( | CornerDetector | , |
| type | , | ||
| cellGridDimension | , | ||
| numTargetFeatures | , | ||
| numMaxFeatures | , | ||
| thresholds | , | ||
| enableSobel | , | ||
| enableSorting | |||
| ) |
| std::int32_t dai::RawFeatureTrackerConfig::CornerDetector::cellGridDimension = 4 |
Ensures distributed feature detection across the image. Image is divided into horizontal and vertical cells, each cell has a target feature count = numTargetFeatures / cellGridDimension. Each cell has its own feature threshold. A value of 4 means that the image is divided into 4x4 cells of equal width/height. Maximum 4, minimum 1.
Definition at line 42 of file RawFeatureTrackerConfig.hpp.
| bool dai::RawFeatureTrackerConfig::CornerDetector::enableSobel = true |
Enable 3x3 Sobel operator to smoothen the image whose gradient is to be computed. If disabled, a simple 1D row/column differentiator is used for gradient.
Definition at line 60 of file RawFeatureTrackerConfig.hpp.
| bool dai::RawFeatureTrackerConfig::CornerDetector::enableSorting = true |
Enable sorting detected features based on their score or not.
Definition at line 65 of file RawFeatureTrackerConfig.hpp.
| std::int32_t dai::RawFeatureTrackerConfig::CornerDetector::numMaxFeatures = AUTO |
Hard limit for the maximum number of features that can be detected. 0 means auto, will be set to the maximum value based on memory constraints.
Definition at line 54 of file RawFeatureTrackerConfig.hpp.
| std::int32_t dai::RawFeatureTrackerConfig::CornerDetector::numTargetFeatures = 320 |
Target number of features to detect. Maximum number of features is determined at runtime based on algorithm type.
Definition at line 48 of file RawFeatureTrackerConfig.hpp.
| Thresholds dai::RawFeatureTrackerConfig::CornerDetector::thresholds |
Threshold settings. These are advanced settings, suitable for debugging/special cases.
Definition at line 113 of file RawFeatureTrackerConfig.hpp.
| Type dai::RawFeatureTrackerConfig::CornerDetector::type = Type::HARRIS |
Corner detector algorithm type.
Definition at line 32 of file RawFeatureTrackerConfig.hpp.