CVB.Net 14.0
SampleImageList.SampleInformationCollection Class Reference

Collection of samples inside a class of an SampleImageList. More...

Inherits IEnumerable< Stemmer.Cvb.Image >.

Public Member Functions

void Add (Stemmer.Cvb.Image image, Point2D position)
 Add a new sample to the samples collection More...
 
void Remove (int index)
 Remove a sample image. More...
 
void MoveToClass (int index, string name)
 Move a sample to a different (potentially new) class. More...
 
void Clear ()
 Clear all the samples in this class.
 

Properties

int Count [get]
 Get the number of samples for this collection. More...
 
Stemmer.Cvb.Image this[int index] [get]
 Access one of the sample images. More...
 

Detailed Description

Collection of samples inside a class of an SampleImageList.

Member Function Documentation

◆ Add()

void Add ( Stemmer.Cvb.Image  image,
Point2D  position 
)

Add a new sample to the samples collection

Parameters
imageimage from which to extract the sample
positionposition at which to extract it
Exceptions
ObjectDisposedExceptionIf the parent list has already been disposed.

◆ MoveToClass()

void MoveToClass ( int  index,
string  name 
)

Move a sample to a different (potentially new) class.

Parameters
indexindex of the sample to be moved
namename of the class into which to move the image; this class must already exist in the SampleImageList!
Exceptions
ObjectDisposedExceptionIf the parent list has already been disposed.
ArgumentNullExceptionIf name is null
ArgumentExceptionIf name is an empty string
InvalidOperationExceptionIf the name d class does not yet exist in the SampleImageList
ArgumentOutOfRangeExceptionIf the index parameter is invalid.

◆ Remove()

void Remove ( int  index)

Remove a sample image.

Parameters
indexindex of the sample image to be removed
Exceptions
ArgumentOutOfRangeExceptionIf the index is invalid
ObjectDisposedExceptionIf the parent list has already been disposed.

Property Documentation

◆ Count

int Count
get

Get the number of samples for this collection.

Exceptions
ObjectDisposedExceptionIf the parent list has already been disposed.

◆ this[int index]

Stemmer.Cvb.Image this[int index]
get

Access one of the sample images.

Parameters
indexindex to be accessed
Returns
image
Exceptions
ObjectDisposedExceptionIf the parent list has already been disposed.
ArgumentOutOfRangeExceptionIf the index is invalid