CVB++ 14.0
ImageInfo Class Reference

Image 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 ImageImage () const
 Image representation of this object. More...
 
void TransformImageAndInstances (Matrix2D matrix)
 Transform this image and all instances trained from this image using a 2x2 matrix. More...
 
std::vector< SearchResultCheckConsistency (double threshold, double density=1.0)
 Test this image for potentially forgotten instances to be trained. More...
 
ImageInstanceInfoCollection Instances () const
 The instances belonging to this model. More...
 
void * Handle () const noexcept
 Classic API MTSIMAGE handle. More...
 

Detailed Description

Image that has been added to a training set.

Member Function Documentation

◆ CheckConsistency()

std::vector< SearchResult > CheckConsistency ( double  threshold,
double  density = 1.0 
)
inline

Test this image for potentially forgotten instances to be trained.

Parameters
[in]thresholdCorrelation threshold to be used for the consistency check.
[in]densityDensity to be used for the consistency check.
Returns
Potentially forgotten positive samples that may be added to the training set.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Handle()

void * Handle ( ) const
inlinenoexcept

Classic API MTSIMAGE handle.

Returns
Classic API handle.
Exceptions
Doesnot throw any exception.

It is normally not necessary to work with this handle.

◆ Image()

std::unique_ptr< class Image > Image ( ) const
inline

Image representation of this object.

Returns
Image representation.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Index()

int Index ( ) const
inline

Index of this object in the parent's collection.

Returns
Index in the collection.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Instances()

ImageInstanceInfoCollection Instances ( ) const
inline

The instances belonging to this model.

Returns
The instance info collection.
Exceptions
Anyexception 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.

◆ TransformImageAndInstances()

void TransformImageAndInstances ( Matrix2D  matrix)
inline

Transform this image and all instances trained from this image using a 2x2 matrix.

Parameters
[in]matrixMatrix to transform the model with.
Exceptions
Anyexception derived from std::exception including CvbException.