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. | |
| std::vector< int > | GradientHistogram (const ImagePlane &plane, Rect< int > aoi, ShapeFinder2::GradientType gradient) const |
| Calculate the gradient histogram. | |
| ValueRange< Angle > | RotationRangeMax () const noexcept |
| The maximum range of rotations (in degrees), that may be set on the learner. | |
| ValueRange< Angle > | RotationRange () const noexcept |
| Range of rotations, that the classifier should be able to cover. | |
| void | SetRotationRange (ValueRange< Angle > value) |
| Range of rotations, that the classifier should be able to cover. | |
| ValueRange< double > | ScaleRangeMax () const noexcept |
| The maximum range of scales, that may be set on the learner. | |
| ValueRange< double > | ScaleRange () const noexcept |
| Range of scales, that the classifier should be able to cover. | |
| void | SetScaleRange (ValueRange< double > value) |
| Range of scales, that the classifier should be able to cover. | |
| int | FeatureCount () const noexcept |
| Minimum number of features the result classifier should have. | |
| void | SetFeatureCount (int value) |
| Minimum number of features the result classifier should have. | |
| int | ContrastThreshold () const noexcept |
| Minimum contrast a feature must have to enter into the classifier. | |
| void | SetContrastThreshold (int value) |
| Minimum contrast a feature must have to enter into the classifier. | |
| int | MaxCoarseLayerScale () const noexcept |
| Maximum exponent of the scale factor between the coarse layer and the image. | |
| void | SetMaxCoarseLayerScale (int value) |
| Maximum exponent of the scale factor between the coarse layer and the image. | |
| Cvb::ShapeFinder2::ContrastMode | ContrastMode () const noexcept |
| Contrast mode to be used for feature extraction. | |
| void | SetContrastMode (Cvb::ShapeFinder2::ContrastMode mode) noexcept |
| Contrast mode to be used for feature extraction. | |
| int | ProfileSize () const noexcept |
| Profile size gives the number of profile points to be used for correlation around each feature. | |
| void | SetProfileSize (int value) |
| Profile size gives the number of profile points to be used for correlation around each feature. | |
| int | ProfileDelta () const noexcept |
| Distance (in pixels) between adjacent profile points. | |
| void | SetProfileDelta (int value) |
| Distance (in pixels) between adjacent profile points. | |
| std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< int > position, Rect< int > teachWindow, const std::vector< Point2D< int > > &dontCarePoints) const |
| Creates a ShapeFinder2 classifier from plane 0 of the input image. | |
| std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< int > position, Rect< int > teachWindow) const |
| Create a ShapeFinder2 classifier from plane 0 of the input image. | |
| std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< int > position, Angle angleOffset, double scaleFactor, Rect< int > teachWindow) const |
| Create a ShapeFinder2 classifier from the input image. | |
| std::unique_ptr< Classifier > | Learn (const ImagePlane &plane, Point2D< int > position, Angle angleOffset, double scaleFactor, Rect< int > teachWindow, const std::vector< Point2D< int > > &dontCarePoints) const |
| Create a ShapeFinder2 classifier from the input image. | |
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. |