Class that maintains the collection of Training Images inside a Minos Training Set. More...
Inherits TrainingSet.TrainingSetObjectInfoCollection< TParent, TInfo >.
Inherited by TrainingSet.ImageInstanceInfoCollection, and TrainingSet.ModelInstanceInfoCollection.
Public Member Functions | |
bool | Remove (InstanceInfo instance) |
Remove an instance from the training set. | |
void | Remove (int index) |
Remove an instance from the training set. | |
![]() | |
int | IndexOf (TInfo obj) |
Determine the index of an image information object inside this collection. | |
![]() | |
TInfo[] | ToArray () |
Converts this collection into an array. | |
Protected Member Functions | |
override int | GetCount () |
Parent class calls this method to determine the number of objects in the collection. | |
override InstanceInfo | GetInfo (int index) |
Parent class calls this method to extract one info object by index. | |
![]() | |
InfoCollection (TParent parent) | |
Constructor. | |
int | GetCount () |
Function with which the collection queries the number of elements. | |
TInfo | GetInfo (int index) |
Function with which the collection retrieves the information object with the given index. | |
Protected Attributes | |
readonly IntPtr | collectionParent_ |
The instance collection needs the collection parent handle in addition to the MTS handle as the instance collection appears twice: once inside the model, and once inside the image. | |
![]() | |
readonly TParent | Parent |
Parent image reference helps keeping track of the lifetime and provides the information basis for index access. | |
Properties | |
InstanceInfo | this[int index] [get] |
Index-based item access. | |
![]() | |
int | Count [get] |
Number of elements in the collection. | |
Class that maintains the collection of Training Images inside a Minos Training Set.
|
protected |
Parent class calls this method to determine the number of objects in the collection.
ObjectDisposedException | If the TrainingSet has already been disposed |
|
protected |
Parent class calls this method to extract one info object by index.
index | index at which to extract |
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentOutOfRangeException | If the index is invalid |
bool Remove | ( | InstanceInfo | instance | ) |
Remove an instance from the training set.
Calling this method will likely invalidate any references to training set instances you are currently holding - so make sure you renew those where necessary!
instance | instance to be removed from the training set |
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentNullException | If instance is null |
void Remove | ( | int | index | ) |
Remove an instance from the training set.
Calling this method will potentially invalidate any references to training set instances you are currently holding - so make sure you renew those where necessary!
index | index of the training set instance to be removed |
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentOutOfRangeException | If index exceeds the range [0...Count] |
|
get |
Index-based item access.
index | index to be accessed |
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentOutOfRangeException | If the index is invalid |