TrainingSetModelInfoCollectionAdd Method

CVB.Net Documentation
Add a new model (plus the first instance of that model) to the training set.

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

public void Add(
	TrainingSetImageInfo image,
	string name,
	Point2D location,
	Rect featureWindow
)

Parameters

image
Type: Stemmer.Cvb.MinosTrainingSetImageInfo
image from which to extract the first instance (needs to be taken from the TrainingSet.Images collection)
name
Type: SystemString
name of the model to be generation
location
Type: Stemmer.CvbPoint2D
position in the image from which to extract the first instance
featureWindow
Type: Stemmer.CvbRect
feature of the model to be generated
Exceptions

ExceptionCondition
ObjectDisposedExceptionIf the training set has already been disposed
ArgumentNullExceptionIf image or name are null
InvalidOperationExceptionwhen one of the following applies:
  • the image has been taken from a training set that is not the parent of this collection
  • the name is an empty string
  • location references a location that lies outside the image or too close to the image border to extract a model with the given feature window.
See Also

Reference