ShapeFinder2 classifier factory object. More...
#include <cvb/shapefinder2/classifier_factory.hpp>
Public Member Functions | |
ClassifierFactory () noexcept=default | |
The object that holds methods for generating ShapeFinder classifier factory. More... | |
std::vector< int > | GradientHistogram (const ImagePlane &plane, Rect< int > aoi, ShapeFinder2::GradientType gradient) const |
Calculate the gradient histogram. More... | |
ValueRange< Angle > | RotationRangeMax () const noexcept |
The maximum range of rotations (in degrees), that may be set on the learner. More... | |
ValueRange< Angle > | RotationRange () const noexcept |
Range of rotations, that the classifier should be able to cover. More... | |
void | SetRotationRange (ValueRange< Angle > value) |
Range of rotations, that the classifier should be able to cover. More... | |
ValueRange< double > | ScaleRangeMax () const noexcept |
The maximum range of scales, that may be set on the learner. More... | |
ValueRange< double > | ScaleRange () const noexcept |
Range of scales, that the classifier should be able to cover. More... | |
void | SetScaleRange (ValueRange< double > value) |
Range of scales, that the classifier should be able to cover. More... | |
int | FeatureCount () const noexcept |
Minimum number of features the result classifier should have. More... | |
void | SetFeatureCount (int value) |
Minimum number of features the result classifier should have. More... | |
int | ContrastThreshold () const noexcept |
Minimum contrast a feature must have to enter into the classifier. More... | |
void | SetContrastThreshold (int value) |
Minimum contrast a feature must have to enter into the classifier. More... | |
int | MaxCoarseLayerScale () const noexcept |
Maximum exponent of the scale factor between the coarse layer and the image. More... | |
void | SetMaxCoarseLayerScale (int value) |
Maximum exponent of the scale factor between the coarse layer and the image. More... | |
Cvb::ShapeFinder2::ContrastMode | ContrastMode () const noexcept |
Contrast mode to be used for feature extraction. More... | |
void | SetContrastMode (Cvb::ShapeFinder2::ContrastMode mode) noexcept |
Contrast mode to be used for feature extraction. More... | |
int | ProfileSize () const noexcept |
Profile size gives the number of profile points to be used for correlation around each feature. More... | |
void | SetProfileSize (int value) |
Profile size gives the number of profile points to be used for correlation around each feature. More... | |
int | ProfileDelta () const noexcept |
Distance (in pixels) between adjacent profile points. More... | |
void | SetProfileDelta (int value) |
Distance (in pixels) between adjacent profile points. More... | |
std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< double > position, Rect< int > teachWindow, const std::vector< Point2D< int > > &dontCarePoints) const |
Creates a ShapeFinder2 classifier from plane 0 of the input image. More... | |
std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< double > position, Rect< int > teachWindow) const |
Create a ShapeFinder2 classifier from plane 0 of the input image. More... | |
std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< double > position, Angle angleOffset, double scaleFactor, Rect< int > teachWindow) const |
Create a ShapeFinder2 classifier from the input image. More... | |
std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< double > position, Angle angleOffset, double scaleFactor, Rect< int > teachWindow, const std::vector< Point2D< int > > &dontCarePoints) const |
Create a ShapeFinder2 classifier from the input image. More... | |
ShapeFinder2 classifier factory object.
|
defaultnoexcept |
The object that holds methods for generating ShapeFinder classifier factory.
Does | not throw any exception. |
|
inlinenoexcept |
Contrast mode to be used for feature extraction.
Does | not throw any exception. |
|
inlinenoexcept |
Minimum contrast a feature must have to enter into the classifier.
Does | not throw any exception. |
|
inlinenoexcept |
Minimum number of features the result classifier should have.
Does | not throw any exception. |
|
inline |
Calculate the gradient histogram.
[in] | plane | The image plane in which to calculate the histogram. |
[in] | aoi | The area of interest in which to calculate the histogram. |
[in] | gradient | The gradient operator to calculate the histogram. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Create a ShapeFinder2 classifier from the input image.
[in] | plane | The image plane to create the classifier from. |
[in] | position | The position in the input image at which to extract the classifier. |
[in] | angleOffset | The initial rotation of the object. |
[in] | scaleFactor | The initial scale factor of the object. |
[in] | teachWindow | The teach window for the classifier learning process relative to position. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Create a ShapeFinder2 classifier from the input image.
[in] | plane | The image plane to create the classifier from. |
[in] | position | The position in the input image at which to extract the classifier. |
[in] | angleOffset | The initial rotation of the object. |
[in] | scaleFactor | The initial scale factor of the object. |
[in] | teachWindow | The teach window for the classifier learning process relative to position. |
[in] | dontCarePoints | The list of points relative to position from which no features for the classifier should be extracted. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Create a ShapeFinder2 classifier from plane 0 of the input image.
[in] | plane | The plane in the input image from which to create the classifier. |
[in] | position | The position in the input image at which to extract the classifier. |
[in] | teachWindow | The teach window for the classifier learning process relative to position. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Creates a ShapeFinder2 classifier from plane 0 of the input image.
[in] | plane | The plane in the input image from which to create the classifier. |
[in] | position | The position in the input image at which to extract the classifier. |
[in] | teachWindow | The teach window for the classifier learning process relative to position. |
[in] | dontCarePoints | The list of points relative to position from which no features for the classifier should be extracted. |
Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Maximum exponent of the scale factor between the coarse layer and the image.
Does | not throw any exception. |
|
inlinenoexcept |
Distance (in pixels) between adjacent profile points.
Does | not throw any exception. |
|
inlinenoexcept |
Profile size gives the number of profile points to be used for correlation around each feature.
Does | not throw any exception. |
|
inlinenoexcept |
Range of rotations, that the classifier should be able to cover.
Does | not throw any exception. |
|
inlinenoexcept |
The maximum range of rotations (in degrees), that may be set on the learner.
Does | not throw any exception. |
|
inlinenoexcept |
Range of scales, that the classifier should be able to cover.
Does | not throw any exception. |
|
inlinenoexcept |
The maximum range of scales, that may be set on the learner.
Does | not throw any exception. |
|
inlinenoexcept |
Contrast mode to be used for feature extraction.
[in] | mode | The contrast mode. |
Does | not throw any exception. |
|
inline |
Minimum contrast a feature must have to enter into the classifier.
[in] | value | The minimum contrast. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Minimum number of features the result classifier should have.
[in] | value | The minimum number of features. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Maximum exponent of the scale factor between the coarse layer and the image.
[in] | value | The maximum exponent of the scale factor. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Distance (in pixels) between adjacent profile points.
[in] | value | The profile delta. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Profile size gives the number of profile points to be used for correlation around each feature.
[in] | value | The profile size. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Range of rotations, that the classifier should be able to cover.
[in] | value | The minimum and maximum rotation range. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Range of scales, that the classifier should be able to cover.
[in] | value | The minimum and maximum scale range. |
Any | exception derived from std::exception including CvbException. |