Class that maintains the collection of Training Images inside a Minos Training Set.
More...
Inherits TrainingSet.TrainingSetObjectInfoCollection< TrainingSet, ImageInfo >.
|
void | Add (Image img) |
| Add a new training set image to the parent training set. More...
|
|
void | Add (ImagePlane plane) |
| Add a new training set image to the parent training set. More...
|
|
bool | Remove (ImageInfo image) |
| Remove a training set image along with its instances from the training set. More...
|
|
void | RemoveAt (int index) |
| Remove a training set image along with its instances from the training set. More...
|
|
int | IndexOf (TInfo obj) |
| Determine the index of an image information object inside this collection. More...
|
|
|
override int | GetCount () |
| Parent class calls this method to determine the number of objects in the collection. More...
|
|
override ImageInfo | GetInfo (int index) |
| Parent class calls this method to extract one info object by index. More...
|
|
Class that maintains the collection of Training Images inside a Minos Training Set.
◆ Add() [1/2]
Add a new training set image to the parent training set.
This variant of the function will always simply add plane 0 of the image to the training set, regardless of the plane count.
- Parameters
-
- Exceptions
-
ObjectDisposedException | If the TrainingSet or the image has already been disposed |
ArgumentNullException | If img is null |
OutOfMemoryException | If the insertion operation failed |
◆ Add() [2/2]
Add a new training set image to the parent training set.
Minos only supports gray value images. When adding a color or multi planar Image you will need to choose which of the planes of the image to add.
- Parameters
-
plane | plane of an image to be added |
- Exceptions
-
ObjectDisposedException | If the TrainingSet or the image has already been disposed |
ArgumentNullException | If the parent of plane is null |
OutOfMemoryException | If the insertion operation failed |
◆ GetCount()
override int GetCount |
( |
| ) |
|
|
protected |
Parent class calls this method to determine the number of objects in the collection.
- Returns
- number of objects in the collection
- Exceptions
-
ObjectDisposedException | If the TrainingSet has already been disposed |
◆ GetInfo()
Parent class calls this method to extract one info object by index.
- Parameters
-
index | index at which to extract |
- Returns
- extracted object
- Exceptions
-
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentOutOfRangeException | If the index is invalid |
◆ Remove()
Remove a training set image along with its instances from the training set.
Calling this method will potentially invalidate any references to training set images or instances you are currently holding - so make sure you renew those where necessary!
- Parameters
-
image | training set image to be removed |
- Returns
- true if the image has been removed successfully, false otherwise
- Exceptions
-
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentNullException | If image is null |
◆ RemoveAt()
void RemoveAt |
( |
int |
index | ) |
|
Remove a training set image along with its instances from the training set.
Calling this method will potentially invalidate any references to training set images or instances you are currently holding - so make sure you renew those where necessary!
- Parameters
-
index | index of the training set image to be removed |
- Exceptions
-
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentOutOfRangeException | If index exceeds the range [0...Count] |
◆ this[int index]
Index-based item access.
- Parameters
-
index | index to be accessed |
- Returns
- indexed class object
- Exceptions
-
ObjectDisposedException | If the TrainingSet has already been disposed |
ArgumentOutOfRangeException | If the index is invalid |