3#include "../_cexports/c_minos.h"
5#include "../global.hpp"
21 LearnParameters(
int minFeatureCount,
int polydromy,
int ensembleSize,
int contrastTrigger,
int indifferenceRadius,
22 double negativeDensity) noexcept
23 : minFeatureCount_(minFeatureCount)
24 , polydromy_(polydromy)
25 , ensembleSize_(ensembleSize)
26 , contrastTrigger_(contrastTrigger)
27 , indifferenceRadius_(indifferenceRadius)
28 , negativeDensity_(negativeDensity)
32 LearnParameters() noexcept
111 return minFeatureCount_;
122 if (minFeatureCount < 1)
126 minFeatureCount_ = minFeatureCount;
151 polydromy_ = polydromy;
162 return ensembleSize_;
173 if (ensembleSize < 1)
177 ensembleSize_ = ensembleSize;
188 return contrastTrigger_;
199 if (contrastTrigger < 1)
203 contrastTrigger_ = contrastTrigger;
213 return indifferenceRadius_;
224 if (indifferenceRadius < 1)
228 indifferenceRadius_ = indifferenceRadius;
239 return negativeDensity_;
250 if (negativeDensity < 0.0 || negativeDensity > 1.0)
254 negativeDensity_ = negativeDensity;
258 int minFeatureCount_;
261 int contrastTrigger_;
262 int indifferenceRadius_;
263 double negativeDensity_;
18 class LearnParameters {
…};
static int ContrastTriggerDefault() noexcept
Default value for the ContrastTrigger.
Definition learn_parameters.hpp:68
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:171
static int PolydromyDefault() noexcept
Default value for the Polydromy.
Definition learn_parameters.hpp:88
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:211
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:222
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:186
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:109
static double NegativeDensityDefault() noexcept
Default value for the NegativeDensity.
Definition learn_parameters.hpp:58
int Polydromy() const noexcept
Gets the polydromy value controlling the complexity of the feature search tree in the classifier.
Definition learn_parameters.hpp:134
static int EnsembleSizeDefault() noexcept
Default value for the EnsembleSize.
Definition learn_parameters.hpp:78
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:160
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:197
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:120
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:248
static int IndifferenceRadiusDefault() noexcept
Default value for the IndifferenceRadius.
Definition learn_parameters.hpp:48
static int MinFeatureCountDefault() noexcept
Default value for the MinFeatureCount.
Definition learn_parameters.hpp:98
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:237
void SetPolydromy(int polydromy)
Sets the polydromy value controlling the complexity of the feature search tree in the classifier....
Definition learn_parameters.hpp:145
Namespace for the Minos package.
Definition classifier.hpp:29
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17