CVB.Net 15.0

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.
 
override bool Equals (object obj)
 Check two ImageInformation objects for equality.
 
void TransformImageAndInstances (Matrix2D matrix)
 Transform this image and all instances trained from this image using a 2x2 matrix.
 
unsafe SearchResult[] CheckConsistency (double threshold, double density)
 Test this image for potentially forgotten instances to be trained.
 

Static Public Member Functions

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

Protected Member Functions

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

Properties

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

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 ( )
protected

Creates the image used for representing this object.

Returns
Image representing this object.

◆ 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 ( )
protected

Index of this MTS image inside the training set.

Returns
index

◆ 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