Add a sample under a new value. If the value indicated by the
label already exists the sample will be added to
the existing label.
Namespace: Stemmer.Cvb.SampleDatabase
Assembly: Stemmer.Cvb.SampleDatabase (in Stemmer.Cvb.SampleDatabase.dll) Version: 14.0.0.0
Syntax
public void Add( float[] label, Image srcImage, Point2D extractionLocation, SampleExtractionMode mode = SampleExtractionMode.TopLeftCorner )
Parameters
- label
- Type: SystemSingle
label of the new class. - srcImage
- Type: Stemmer.CvbImage
Image from which to extract the first sample for the new class. - extractionLocation
- Type: Stemmer.CvbPoint2D
Location at which to extract the first sample for the new class. Note that what the extraction location actually refers dependent on the value of the mode parameter. - mode (Optional)
- Type: Stemmer.Cvb.SampleDatabaseSampleExtractionMode
Interpretation hint for the extractionLocation parameter.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | If the image list has already been disposed. |
See Also