5 #include "../value_range.hpp" 21 #pragma pack (push, 4) 44 return hypothesesThreshold_;
56 hypothesesThreshold_ = value;
70 return derivativePatchSize_;
82 derivativePatchSize_ = value;
94 return indifferentRadius_;
106 indifferentRadius_ = value;
130 partsToFind_ = value;
144 return rawResultsOnly_;
154 rawResultsOnly_ = value;
195 return icpMaxIterations_;
207 icpMaxIterations_ = value;
221 return precisionThreshold_;
233 precisionThreshold_ = value;
259 minCoverage_ = value;
274 return maxOcclusion_;
286 maxOcclusion_ = value;
301 return maxInconsistency_;
313 maxInconsistency_ = value;
347 return value <= range.
Max() && value >= range.
Min();
350 double hypothesesThreshold_ = 0.7;
351 int derivativePatchSize_ = 5;
352 double indifferentRadius_ = 0.6;
353 int partsToFind_ = 0;
354 bool rawResultsOnly_ =
false;
356 int icpMaxIterations_ = 10;
357 double precisionThreshold_ = 2.0;
358 double minCoverage_ = 0.7;
359 double maxOcclusion_ = 0.2;
360 double maxInconsistency_ = 0.2;
361 double minScore_ = 0.7;
void SetPartsToFind(int value)
Set the maximum number of objects to find.
Definition: search_parameters.hpp:126
T Min() const noexcept
Gets the minimum value.
Definition: value_range.hpp:50
void SetICPShrink(int value)
Set the subsample factor for ICP.
Definition: search_parameters.hpp:177
T Max() const noexcept
Gets the maximum value.
Definition: value_range.hpp:72
int DerivativePatchSize() const noexcept
Get smoothing area in pixels for gradient and normal calculation.
Definition: search_parameters.hpp:68
void SetMaxInconsistency(double value)
Set maximum inconsistency.
Definition: search_parameters.hpp:309
double MaxOcclusion() const noexcept
Get maximum occlusion.
Definition: search_parameters.hpp:272
void SetDerivativePatchSize(int value)
Set smoothing area in pixels for gradient and normal calculation.
Definition: search_parameters.hpp:78
int ICPShrink() const noexcept
Get the subsample factor for ICP.
Definition: search_parameters.hpp:167
double MinScore() const noexcept
Get minimum score.
Definition: search_parameters.hpp:325
double MaxInconsistency() const noexcept
Get maximum inconsistency.
Definition: search_parameters.hpp:299
int ICPMaxIterations() const noexcept
Get the maximum number of iterations of the ICP algorithm.
Definition: search_parameters.hpp:193
Definition of search parameters.
Definition: search_parameters.hpp:22
Root namespace for the Image Manager interface.
Definition: version.hpp:11
SearchParameters()=default
Default search parameters.
double PrecisionThreshold() const noexcept
Get precision threshold.
Definition: search_parameters.hpp:219
void SetPrecisionThreshold(double value)
Set precision threshold.
Definition: search_parameters.hpp:229
void SetMinScore(double value)
Set minimum score.
Definition: search_parameters.hpp:335
void SetHypothesesThreshold(double value)
Set minimum feature score for hypotheses generation.
Definition: search_parameters.hpp:52
int PartsToFind() const noexcept
Get the maximum number of objects to find.
Definition: search_parameters.hpp:116
void SetICPMaxIterations(int value)
Set the maximum number of iterations of the ICP algorithm.
Definition: search_parameters.hpp:203
bool RawResultsOnly() const noexcept
Get the raw results flag.
Definition: search_parameters.hpp:142
double IndifferentRadius() const noexcept
Get fraction of template size which accounts for a single object.
Definition: search_parameters.hpp:92
double HypothesesThreshold() const noexcept
Get minimum feature score for hypotheses generation.
Definition: search_parameters.hpp:42
void SetMinCoverage(double value)
Set minimum coverage.
Definition: search_parameters.hpp:255
void SetIndifferentRadius(double value)
Set fraction of template size which accounts for a single object.
Definition: search_parameters.hpp:102
void SetRawResultsOnly(bool value) noexcept
Set the raw results flag.
Definition: search_parameters.hpp:152
double MinCoverage() const noexcept
Get minimum coverage.
Definition: search_parameters.hpp:245
void SetMaxOcclusion(double value)
Set maximum occlusion.
Definition: search_parameters.hpp:282