SampleClassificationImageListImageClassificationInfoCollectionAdd Method

CVB.Net Documentation
Add a sample to a new class. If the class indicated by the label already exists the sample will be added to the existing class.

Namespace:  Stemmer.Cvb.SampleDatabase
Assembly:  Stemmer.Cvb.SampleDatabase (in Stemmer.Cvb.SampleDatabase.dll) Version: 14.0.0.0
Syntax

public void Add(
	string label,
	Image srcImage,
	Point2D extractionLocation,
	SampleExtractionMode mode = SampleExtractionMode.TopLeftCorner
)

Parameters

label
Type: SystemString
Name 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

ExceptionCondition
ObjectDisposedExceptionIf the image list has already been disposed.
See Also

Reference