Learner object that creates a classifier from an image list. More...
#include <cvb/minos/classifier_factory.hpp>
Public Member Functions | |
std::unique_ptr< Classifier > | Learn (const TrainingSet &trainingSet) |
Learn a new classifier from the trainingSet using the parameters stored in the properties of this object. More... | |
int | IndifferenceRadius () const noexcept |
Get the minimum distance to be assumed between a (labeled) positive sample and a counter sample in a training set image. More... | |
void | SetIndifferenceRadius (int indifferenceRadius) |
Set the minimum distance to be assumed between a (labeled) positive sample and a counter sample in a training set image. More... | |
double | NegativeDensity () const noexcept |
Get the scan density with which to extract counter samples from the training set images. More... | |
void | SetNegativeDensity (double negativeDensity) |
Set the scan density with which to extract counter samples from the training set images. Higher densities will lead to a classifier that is potentially more robust versus false positive detections, but will also result in increased learning times. More... | |
int | ContrastTrigger () const noexcept |
Get the minimum contrast a Minos feature must achieve before it is eligible to become part of the classifier. More... | |
void | SetContrastTrigger (int contrastTrigger) |
Set the minimum contrast a Minos feature must achieve before it is eligible to become part of the classifier. Lower values will lead to a classifier that is more sensitive in low-contrast situation but might also increase the number of false positive results that need to be filtered out e.g. by means of their quality measure. More... | |
int | EnsembleSize () const noexcept |
Get the maximum size of the Ensembles of similar instance images to be used for pair feature calculation. More... | |
void | SetEnsembleSize (int ensembleSize) |
Set the maximum size of the Ensembles of similar instance images to be used for pair feature calculation. Valid ensemble sizes must be greater than 0, the default value is 15. More... | |
int | Polydromy () const noexcept |
Get the polydromy value controlling the complexity of the feature search tree in the classifier. More... | |
void | SetPolydromy (int polydromy) |
Set the polydromy value controlling the complexity of the feature search tree in the classifier. Valid polydromy values must be greater than 0, the default value is 2. More... | |
int | MinPairFeatures () const noexcept |
Get the minimum number of features to extract for each model when building a classifier. More... | |
void | SetMinPairFeatures (int minPairFeatures) |
Set the minimum number of features to extract for each model when building a classifier. More... | |
Static Public Member Functions | |
static int | IndifferenceRadiusDefault () noexcept |
Default value for the IndifferenceRadius. More... | |
static double | NegativeDensityDefault () noexcept |
Default value for the NegativeDensity. More... | |
static int | ContrastTriggerDefault () noexcept |
Default value for the ContrastTrigger. More... | |
static int | EnsembleSizeDefault () noexcept |
Default value for the EnsembleSize. More... | |
static int | PolydromyDefault () noexcept |
Default value for the Polydromy. More... | |
static int | MinPairFeaturesDefault () noexcept |
Default value for the MinPairFeatures. More... | |
Learner object that creates a classifier from an image list.
|
inlinenoexcept |
Get the minimum contrast a Minos feature must achieve before it is eligible to become part of the classifier.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Default value for the ContrastTrigger.
Does | not throw any exception. |
|
inlinenoexcept |
Get the maximum size of the Ensembles of similar instance images to be used for pair feature calculation.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Default value for the EnsembleSize.
Does | not throw any exception. |
|
inlinenoexcept |
Get the minimum distance to be assumed between a (labeled) positive sample and a counter sample in a training set image.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Default value for the IndifferenceRadius.
Does | not throw any exception. |
|
inline |
Learn a new classifier from the trainingSet using the parameters stored in the properties of this object.
[in] | trainingSet | Training set from which to learn. |
Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Get the minimum number of features to extract for each model when building a classifier.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Default value for the MinPairFeatures.
Does | not throw any exception. |
|
inlinenoexcept |
Get the scan density with which to extract counter samples from the training set images.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Default value for the NegativeDensity.
Does | not throw any exception. |
|
inlinenoexcept |
Get the polydromy value controlling the complexity of the feature search tree in the classifier.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Default value for the Polydromy.
Does | not throw any exception. |
|
inline |
Set the minimum contrast a Minos feature must achieve before it is eligible to become part of the classifier. Lower values will lead to a classifier that is more sensitive in low-contrast situation but might also increase the number of false positive results that need to be filtered out e.g. by means of their quality measure.
[in] | contrastTrigger | The contrast trigger value. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the maximum size of the Ensembles of similar instance images to be used for pair feature calculation. Valid ensemble sizes must be greater than 0, the default value is 15.
[in] | ensembleSize | The ensemble size value. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the minimum distance to be assumed between a (labeled) positive sample and a counter sample in a training set image.
[in] | indifferenceRadius | The indifference radius value. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the minimum number of features to extract for each model when building a classifier.
[in] | minPairFeatures | The minimum feature count. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the scan density with which to extract counter samples from the training set images. Higher densities will lead to a classifier that is potentially more robust versus false positive detections, but will also result in increased learning times.
[in] | negativeDensity | The negative density value. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the polydromy value controlling the complexity of the feature search tree in the classifier. Valid polydromy values must be greater than 0, the default value is 2.
[in] | polydromy | The polydromy value. |
Any | exception derived from std::exception including CvbException. |