Model that has been added to a training set. More...
#include <cvb/minos/training_set.hpp>
Public Member Functions | |
int | Index () const |
Index of this object in the parent's collection. More... | |
std::unique_ptr< class Image > | Image () const |
Image representation of this object. More... | |
String | Name () const |
Get the name of the model. More... | |
void | SetName (const String &name) |
Set the name of the model. More... | |
Point2D< double > | AdvanceVector () const |
Get the advance vector associated with this model. More... | |
void | SetAdvanceVector (Point2D< double > advanceVector) |
Set the advance vector associated with this model. More... | |
Rect< int > | FeatureWindow () const |
Get the feature window for this model. More... | |
void | SetFeatureWindow (Rect< int > featureWindow) |
Set the feature window for this model. More... | |
Point2D< double > | Origin () const |
Get the origin of the model in terms of coordinates inside the feature window. More... | |
void | SetOrigin (Point2D< double > origin) |
Set the origin of the model in terms of coordinates inside the feature window. More... | |
ModelInstanceInfoCollection | Instances () const |
The instances belonging to this model. More... | |
std::vector< SearchResult > | CheckConsistency (const ImageInfo &trainingSetImage, double threshold, double density=1.0) |
Test the image referenced by trainingSetImage for instances of this model that might have been forgotten during the training process. More... | |
std::vector< SearchResult > | CheckConsistency (double threshold, double density=1.0) |
Test all images in the parent training set for instances of this model that might have been forgotten during the training process. More... | |
Rect< int > | GetMaxFeatureWindow () const |
Retrieve the maximum values that may be set as feature window for this model. More... | |
Rect< int > | GetExtractableArea (const ImageInfo &image) const |
Determine the maximum area from which an instance of this model may be extracted from a given training set image. More... | |
void * | Handle () const noexcept |
Classic API MTSMODEL handle. More... | |
Model that has been added to a training set.
|
inline |
Get the advance vector associated with this model.
Any | exception derived from std::exception including CvbException. |
|
inline |
Test the image referenced by trainingSetImage for instances of this model that might have been forgotten during the training process.
[in] | trainingSetImage | Training set image on which to perform the consistency check. |
[in] | threshold | Correlation threshold to be used for the consistency check. |
[in] | density | Density to be used for the consistency check. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Test all images in the parent training set for instances of this model that might have been forgotten during the training process.
[in] | threshold | Correlation threshold to be used for the consistency check. |
[in] | density | Density to be used for the consistency check. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Get the feature window for this model.
Any | exception derived from std::exception including CvbException. |
Determine the maximum area from which an instance of this model may be extracted from a given training set image.
[in] | image | Training set image for which to query the extractable area. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Retrieve the maximum values that may be set as feature window for this model.
Any | exception derived from std::exception including CvbException. |
The maximum range is calculated based on the actual locations of the model's instances inside the training set images (i.e. on their distance to the image borders...). The minimum value in each direction is of course 0.
|
inlinenoexcept |
Classic API MTSMODEL handle.
Does | not throw any exception. |
It is normally not necessary to work with this handle.
|
inline |
Image representation of this object.
Any | exception derived from std::exception including CvbException. |
|
inline |
Index of this object in the parent's collection.
Any | exception derived from std::exception including CvbException. |
|
inline |
The instances belonging to this model.
Any | exception derived from std::exception including CvbException. |
The collection keeps internal link to the classifier, shares resources with it and stays valid even if the classifier object itself gets destroyed.
|
inline |
Get the name of the model.
Any | exception derived from std::exception including CvbException. |
|
inline |
Get the origin of the model in terms of coordinates inside the feature window.
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the advance vector associated with this model.
[in] | advanceVector | The model advance vector. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the feature window for this model.
[in] | featureWindow | The model feature window. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Set the name of the model.
[in] | name | The model name. |
Any | exception derived from std::exception including CvbException. |
Note that model names are not required to be unique for Minos! However, if you give two models the same name, there will be no way to determine to which specific model of a class with more than one model a result reported by a Minos classifier belongs.
|
inline |
Set the origin of the model in terms of coordinates inside the feature window.
[in] | origin | The model origin. |
Any | exception derived from std::exception including CvbException. |