Information collection for class labels.
More...
Inherits InfoCollection< TParent, TInfo >, and .
Inherited by SampleRegressionImageList.ImageRegressionInfoCollection.
|
void | Clear () |
| Remove all labels (and their associated data) from the Sample List.
|
|
void | Remove (int Index) |
| Remove a class by Index.
|
|
void | MergeClasses (int fromIndex, int toIndex) |
| Merge two classes into one class. The class label will be taken from the 2nd class index. Note that this operation will invalidate all indices higher than fromIndex .
|
|
TInfo[] | ToArray () |
| Converts this collection into an array.
|
|
|
override int | GetCount () |
| Parent class calls this method to determine the number of objects in the collection.
|
|
| 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.
|
|
|
TLabelInformation | this[int index] [get] |
| Index-based item access.
|
|
SampleList | ParentList [get] |
| SampleList object to which this class file object is bound.
|
|
int | Count [get] |
| Number of elements in the collection.
|
|
|
readonly TParent | Parent |
| Parent image reference helps keeping track of the lifetime and provides the information basis for index access.
|
|
Information collection for class labels.
- Template Parameters
-
TData | Type of data entries in the list. |
TLabelInformation | Type of label entries in the list. |
◆ Clear()
Remove all labels (and their associated data) from the Sample List.
Note that this invalidates all LabelInfo objects and SampleInfo objects that have been taken from this collection!
- Exceptions
-
ObjectDisposedException | If the image list has already been disposed. |
◆ 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
-
◆ MergeClasses()
void MergeClasses |
( |
int | fromIndex, |
|
|
int | toIndex ) |
Merge two classes into one class. The class label will be taken from the 2nd class index. Note that this operation will invalidate all indices higher than fromIndex .
- Parameters
-
fromIndex | Class to merge to the other classes. |
toIndex | Class to merge the samples to. |
◆ Remove()
Remove a class by Index.
- Parameters
-
Index | index of the class to be removed. |
- Exceptions
-
ObjectDisposedException | If the image list has already been disposed. |
◆ this[int index]
TLabelInformation this[int index] |
|
get |
Index-based item access.
- Parameters
-
index | index to be accessed |
- Returns
- indexed class object
- Exceptions
-
ObjectDisposedException | If the SampleImageList has already been disposed |
ArgumentOutOfRangeException | If the index is invalid |