Parameters for teaching a Match3D DNC finder.
More...
#include <cvb/dnc/teach_parameters.hpp>
Parameters for teaching a Match3D DNC finder.
◆ TeachParameters()
Default teach parameters.
- Exceptions
-
Does | not throw any exception. |
◆ DerivativePatchSize()
int DerivativePatchSize |
( |
| ) |
const |
|
inlinenoexcept |
Get smoothing area in pixels for gradient and normal calculation.
This value controls the local environment in the depth images of the examples which is used to calculate gradients and normals. Minimum is 3. Larger values effectively result in a smoothing of the depth images. This value should be odd. Typical values are in the range 3..9. Smaller values should be favored, since the example images of the CAD object are flawless and free of noise.
The corresponding value of Cvb.Dnc.SearchParameters.DerivativePatchSize of a detection task should be equal, or - in case of sensor noise - bigger.
- Returns
- The patch size.
- Exceptions
-
Does | not throw any exception. |
◆ DistanceKernelSize()
double DistanceKernelSize |
( |
| ) |
const |
|
inlinenoexcept |
Get the factor for distance transform calculation.
A so called Huber kernel is used for the calculation of a distance transform of an example. To some extend a Huber kernel can possibly enlarge the convergence basin of ICP-operations, relative to the Euclidian distance transform (factor = 1). A recommended value is 2. The minimum value is 1.
- Returns
- The distance kernel size.
- Exceptions
-
Does | not throw any exception. |
◆ HeightSensitivity()
double HeightSensitivity |
( |
| ) |
const |
|
inlinenoexcept |
Get the minimum gradient magnitude to accept a local gradient as a feature in the depth images.
This value specifies a threshold (in millimeters) above which local height changes are observed as characteristic features. A typical value is 1 mm. This value is also used implicitly during later search tasks. The minimum value is 0.0. This value is also used implicitly during later search tasks.
- Returns
- The height sensitivity.
- Exceptions
-
Does | not throw any exception. |
◆ ICPShrink()
Get the subsample factor for ICP.
To speed up search tasks, a voxel representation of the examples is pre-calculated. The subsample factor determins the amount of data used to perform an ICP-operation. It strongly influences the recognition speed and the amount of memory used. The recommended value is 4. The minimum value is 1, resulting in no subsampling.
- Returns
- The subsample factor.
- Exceptions
-
Does | not throw any exception. |
◆ LocalDistributionSize()
int LocalDistributionSize |
( |
| ) |
const |
|
inlinenoexcept |
Get the size of area in which local features are distributed (in pixels).
To account for the finite and discrete example positions the local features are somewhat smeared out. This value specifies the local active range of a single feature. A typical value is 8. The minimum value is 0.
- Returns
- The local distribution size.
- Exceptions
-
Does | not throw any exception. |
◆ NumGradientFeatures()
int NumGradientFeatures |
( |
| ) |
const |
|
inlinenoexcept |
Get the number of gradient features retained in the classifier.
To speed up the calculation of correspondences during a detection task, the possibly dense gradient features from the examples are thinned out to a minimum necessary number. This number strongly depends on the object itself. Typical values are between 100 and 1000. A value of 0 means that all gradient features should be used.
- Returns
- The number of gradient features.
- Exceptions
-
Does | not throw any exception. |
◆ NumNormalFeatures()
int NumNormalFeatures |
( |
| ) |
const |
|
inlinenoexcept |
Get the number of normal vector features retained in the classifier.
To speed up the calculation of correspondences during a detection task, the dense normal features from the examples are thinned out to a minimum necessary number. This number strongly depends on the object itself. Typical values are between 100 and 1000. A value of 0 means that all normal features should be used.
- Returns
- The number of normal vector features.
- Exceptions
-
Does | not throw any exception. |
◆ SetDerivativePatchSize()
void SetDerivativePatchSize |
( |
int |
value | ) |
|
|
inline |
Set smoothing area in pixels for gradient and normal calculation.
A detailed description of this parameter can be found at the corresponding getting function DerivativePatchSize.
- Parameters
-
- Exceptions
-
Does | not throw any exception. |
◆ SetDistanceKernelSize()
void SetDistanceKernelSize |
( |
double |
value | ) |
|
|
inline |
Set the factor for Distance transform calculation.
A detailed description of this parameter can be found at the corresponding getting function DistanceKernelSize.
- Parameters
-
[in] | value | The distance kernel size. |
- Exceptions
-
Does | not throw any exception. |
◆ SetHeightSensitivity()
void SetHeightSensitivity |
( |
double |
value | ) |
|
|
inline |
Set the minimum gradient magnitude to accept a local gradient as a feature in the depth images.
A detailed description of this parameter can be found at the corresponding getting function HeightSensitivity.
- Parameters
-
[in] | value | The height sensitivity. |
- Exceptions
-
Does | not throw any exception. |
◆ SetICPShrink()
void SetICPShrink |
( |
int |
value | ) |
|
|
inline |
Set the subsample factor for ICP.
A detailed description of this parameter can be found at the corresponding getting function ICPShrink.
- Parameters
-
[in] | value | The subsample factor. |
- Exceptions
-
Does | not throw any exception. |
◆ SetLocalDistributionSize()
void SetLocalDistributionSize |
( |
int |
value | ) |
|
|
inline |
Set the size of area in which local features are distributed (in pixels).
A detailed description of this parameter can be found at the corresponding getting function LocalDistributionSize.
- Parameters
-
[in] | value | The local distribution size. |
- Exceptions
-
Does | not throw any exception. |
◆ SetNumGradientFeatures()
void SetNumGradientFeatures |
( |
int |
value | ) |
|
|
inline |
Set the number of gradient features retained in the classifier.
A detailed description of this parameter can be found at the corresponding getting function NumGradientFeatures.
- Parameters
-
[in] | value | The number of gradient features. |
- Exceptions
-
Does | not throw any exception. |
◆ SetNumNormalFeatures()
void SetNumNormalFeatures |
( |
int |
value | ) |
|
|
inline |
Set the number of normal vector features retained in the classifier.
A detailed description of this parameter can be found at the corresponding getting function NumNormalFeatures.
- Parameters
-
[in] | value | The number of normal vector features. |
- Exceptions
-
Does | not throw any exception. |