5#include "../value_range.hpp"
42 return hypothesesThreshold_;
67 hypothesesThreshold_ = value;
80 return derivativePatchSize_;
97 derivativePatchSize_ = value;
110 return indifferentRadius_;
127 indifferentRadius_ = value;
155 partsToFind_ = value;
168 return rawResultsOnly_;
189 rawResultsOnly_ = value;
233 return icpMaxIterations_;
249 icpMaxIterations_ = value;
262 return precisionThreshold_;
279 precisionThreshold_ = value;
308 minCoverage_ = value;
321 return maxOcclusion_;
338 maxOcclusion_ = value;
351 return maxInconsistency_;
368 maxInconsistency_ = value;
405 return value <= range.
Max() && value >= range.
Min();
408 double hypothesesThreshold_ = 0.7;
409 int derivativePatchSize_ = 5;
410 double indifferentRadius_ = 0.6;
411 int partsToFind_ = 0;
412 bool rawResultsOnly_ =
false;
414 int icpMaxIterations_ = 10;
415 double precisionThreshold_ = 2.0;
416 double minCoverage_ = 0.7;
417 double maxOcclusion_ = 0.2;
418 double maxInconsistency_ = 0.2;
419 double minScore_ = 0.7;
Definition of search parameters.
Definition: search_parameters.hpp:23
int ICPMaxIterations() const noexcept
Get the maximum number of iterations of the ICP algorithm.
Definition: search_parameters.hpp:231
double HypothesesThreshold() const noexcept
Get minimum feature score for hypotheses generation.
Definition: search_parameters.hpp:40
void SetMaxInconsistency(double value)
Set maximum inconsistency.
Definition: search_parameters.hpp:364
int DerivativePatchSize() const noexcept
Get smoothing area in pixels for gradient and normal calculation.
Definition: search_parameters.hpp:78
void SetPrecisionThreshold(double value)
Set precision threshold.
Definition: search_parameters.hpp:275
double MinScore() const noexcept
Get minimum score.
Definition: search_parameters.hpp:379
bool RawResultsOnly() const noexcept
Get the raw results flag.
Definition: search_parameters.hpp:166
int PartsToFind() const noexcept
Get the maximum number of objects to find.
Definition: search_parameters.hpp:138
void SetMaxOcclusion(double value)
Set maximum occlusion.
Definition: search_parameters.hpp:334
double MaxInconsistency() const noexcept
Get maximum inconsistency.
Definition: search_parameters.hpp:349
void SetHypothesesThreshold(double value)
Set minimum feature score for hypotheses generation.
Definition: search_parameters.hpp:63
void SetMinScore(double value)
Set minimum score.
Definition: search_parameters.hpp:393
void SetDerivativePatchSize(int value)
Set smoothing area in pixels for gradient and normal calculation.
Definition: search_parameters.hpp:93
void SetICPMaxIterations(int value)
Set the maximum number of iterations of the ICP algorithm.
Definition: search_parameters.hpp:245
void SetICPShrink(int value)
Set the subsample factor for ICP.
Definition: search_parameters.hpp:216
double MinCoverage() const noexcept
Get minimum coverage.
Definition: search_parameters.hpp:290
void SetMinCoverage(double value)
Set minimum coverage.
Definition: search_parameters.hpp:304
void SetPartsToFind(int value)
Set the maximum number of objects to find.
Definition: search_parameters.hpp:151
double IndifferentRadius() const noexcept
Get fraction of template size which accounts for a single object.
Definition: search_parameters.hpp:108
void SetRawResultsOnly(bool value) noexcept
Set the raw results flag.
Definition: search_parameters.hpp:187
void SetIndifferentRadius(double value)
Set fraction of template size which accounts for a single object.
Definition: search_parameters.hpp:123
double PrecisionThreshold() const noexcept
Get precision threshold.
Definition: search_parameters.hpp:260
double MaxOcclusion() const noexcept
Get maximum occlusion.
Definition: search_parameters.hpp:319
int ICPShrink() const noexcept
Get the subsample factor for ICP.
Definition: search_parameters.hpp:200
SearchParameters()=default
Default search parameters.
T Min() const noexcept
Gets the minimum value.
Definition: value_range.hpp:50
T Max() const noexcept
Gets the maximum value.
Definition: value_range.hpp:72
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15