3#include "../_cexports/c_minos.h"
5#include "../global.hpp"
21 LearnParameters (
int minFeatureCount,
int polydromy,
int ensembleSize,
int contrastTrigger,
int indifferenceRadius,
double negativeDensity) noexcept
22 : minFeatureCount_ (minFeatureCount), polydromy_ (polydromy), ensembleSize_ (ensembleSize), contrastTrigger_ (contrastTrigger),
23 indifferenceRadius_ (indifferenceRadius), negativeDensity_ (negativeDensity)
99 return minFeatureCount_;
109 if (minFeatureCount < 1)
113 minFeatureCount_ = minFeatureCount;
137 polydromy_ = polydromy;
147 return ensembleSize_;
157 if (ensembleSize < 1)
161 ensembleSize_ = ensembleSize;
171 return contrastTrigger_;
181 if (contrastTrigger < 1)
185 contrastTrigger_ = contrastTrigger;
195 return indifferenceRadius_;
205 if (indifferenceRadius < 1)
209 indifferenceRadius_ = indifferenceRadius;
219 return negativeDensity_;
229 if (negativeDensity < 0.0 || negativeDensity > 1.0)
233 negativeDensity_ = negativeDensity;
237 int minFeatureCount_;
240 int contrastTrigger_;
241 int indifferenceRadius_;
242 double negativeDensity_;
The set of parameters, which controls, how a classifier is being learned from a training set.
Definition: learn_parameters.hpp:19
static int ContrastTriggerDefault() noexcept
Default value for the ContrastTrigger.
Definition: learn_parameters.hpp:57
void SetEnsembleSize(int ensembleSize)
Sets the maximum size of the Ensembles of similar instance images to be used for pair feature calcula...
Definition: learn_parameters.hpp:155
static int PolydromyDefault() noexcept
Default value for the Polydromy.
Definition: learn_parameters.hpp:77
int IndifferenceRadius() const noexcept
Gets the radius (L1 norm!) around a positive instance from which no counter sample is to be extracted...
Definition: learn_parameters.hpp:193
void SetIndifferenceRadius(int indifferenceRadius)
Sets the radius (L1 norm!) around a positive instance from which no counter sample is to be extracted...
Definition: learn_parameters.hpp:203
int ContrastTrigger() const noexcept
Gets the minimum gray value difference the two regions of one pair feature must have to be eligible t...
Definition: learn_parameters.hpp:169
int MinFeatureCount() const noexcept
Gets the minimum feature count defining, how many features must be extracted at the very least per cl...
Definition: learn_parameters.hpp:97
static double NegativeDensityDefault() noexcept
Default value for the NegativeDensity.
Definition: learn_parameters.hpp:47
int Polydromy() const noexcept
Gets the polydromy value controlling the complexity of the feature search tree in the classifier.
Definition: learn_parameters.hpp:121
static int EnsembleSizeDefault() noexcept
Default value for the EnsembleSize.
Definition: learn_parameters.hpp:67
int EnsembleSize() const noexcept
Gets the maximum size of the Ensembles of similar instance images to be used for pair feature calcula...
Definition: learn_parameters.hpp:145
void SetContrastTrigger(int contrastTrigger)
Sets the minimum gray value difference the two regions of one pair feature must have to be eligible t...
Definition: learn_parameters.hpp:179
void SetMinFeatureCount(int minFeatureCount)
Sets the minimum feature count defining, how many features must be extracted at the very least per cl...
Definition: learn_parameters.hpp:107
void SetNegativeDensity(double negativeDensity)
Sets the density at which counter samples are extracted from the training set images during the learn...
Definition: learn_parameters.hpp:227
static int IndifferenceRadiusDefault() noexcept
Default value for the IndifferenceRadius.
Definition: learn_parameters.hpp:37
static int MinFeatureCountDefault() noexcept
Default value for the MinFeatureCount.
Definition: learn_parameters.hpp:87
double NegativeDensity() const noexcept
Gets the density at which counter samples are extracted from the training set images during the learn...
Definition: learn_parameters.hpp:217
void SetPolydromy(int polydromy)
Sets the polydromy value controlling the complexity of the feature search tree in the classifier....
Definition: learn_parameters.hpp:131
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24