CVB.Net 14.0
TrainingSet.ImageInfo Class Reference

Image that has been added to a training set. More...

Inherits TrainingSet.TrainingSetObject.

Public Member Functions

override int GetHashCode ()
 Provide a hash code for this object. More...
 
override bool Equals (object obj)
 Check two ImageInformation objects for equality. More...
 
void TransformImageAndInstances (Matrix2D matrix)
 Transform this image and all instances trained from this image using a 2x2 matrix. More...
 
unsafe SearchResult[] CheckConsistency (double threshold, double density)
 Test this image for potentially forgotten instances to be trained. More...
 

Static Public Member Functions

static bool operator== (ImageInfo lhs, ImageInfo rhs)
 Comparison operator for instance information objects. More...
 
static bool operator!= (ImageInfo lhs, ImageInfo rhs)
 Comparison operator for instance information objects. More...
 

Protected Member Functions

override int GetIndex ()
 Index of this MTS image inside the training set More...
 
override Image CreateImageRepresentation ()
 Creates the image used for representing this object. More...
 
abstract int GetIndex ()
 Method through which the inherited classes retrieve the index this object has in its "master" collection underneath the TrainingSet. More...
 
abstract Image CreateImageRepresentation ()
 Creates the image used for representing this object. More...
 

Properties

ImageInstanceInfoCollection Instances [get]
 The instances belonging to this model. More...
 
- Properties inherited from TrainingSet.TrainingSetObject
int Index [get]
 Index of this object in the parent's collection. More...
 
Image Image [get]
 Image representation of this object. More...
 

Additional Inherited Members

- Protected Attributes inherited from TrainingSet.TrainingSetObject
readonly IntPtr collectionParent_
 Native handle to the parent of the collection (which is not necessarily the training set!)
 

Detailed Description

Image that has been added to a training set.

Member Function Documentation

◆ CheckConsistency()

unsafe SearchResult[] CheckConsistency ( double  threshold,
double  density 
)

Test this image for potentially forgotten instances to be trained.

Parameters
thresholdcorrelation threshold to be used for the consistency check
densitydensity to be used for the consistency check
Returns
potentially forgotten positive samples that may be added to the training set
Exceptions
ObjectDisposedExceptionIf the training set has already been disposed
ArgumentOutOfRangeExceptionIf invalid values for threshold or density have been passed (both parameters must be within the range [0...1.0]
CvbExceptionIf the execution of the consistency check failed

◆ CreateImageRepresentation()

override Image CreateImageRepresentation ( )
protectedvirtual

Creates the image used for representing this object.

Returns
Image representing this object.

Implements TrainingSet.TrainingSetObject.

◆ Equals()

override bool Equals ( object  obj)

Check two ImageInformation objects for equality.

Parameters
objother object to check
Returns
true if the objects are equal, false otherwise

◆ GetHashCode()

override int GetHashCode ( )

Provide a hash code for this object.

Returns
hash code for this object

◆ GetIndex()

override int GetIndex ( )
protectedvirtual

Index of this MTS image inside the training set

Returns
index

Implements TrainingSet.TrainingSetObject.

◆ operator!=()

static bool operator!= ( ImageInfo  lhs,
ImageInfo  rhs 
)
static

Comparison operator for instance information objects.

Parameters
lhsobject to compare
rhsobject to compare
Returns
false if the two objects refer to the same instance

◆ operator==()

static bool operator== ( ImageInfo  lhs,
ImageInfo  rhs 
)
static

Comparison operator for instance information objects.

Parameters
lhsobject to compare
rhsobject to compare
Returns
true if the two objects refer to the same instance

◆ TransformImageAndInstances()

void TransformImageAndInstances ( Matrix2D  matrix)

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

Parameters
matrixmatrix to transform the model with
Exceptions
ObjectDisposedExceptionIf the training set has already been disposed
DivideByZeroExceptionIf the Matrix cannot be used to sensibly transform the image

Property Documentation

◆ Instances

The instances belonging to this model.

Exceptions
ObjectDisposedExceptionIf the training set has already been disposed