TrainingSetImageInstanceInfoCollectionAdd Method

CVB.Net Documentation
Extract a new instance from the parent image and added it to the model with the specified name.

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

public TrainingSetInstanceInfo Add(
	string name,
	bool askForce,
	ref Point2Dd location
)

Parameters

name
Type: SystemString
name of the model to which to add the instance
askForce
Type: SystemBoolean
flag controlling the response to a failed correlation test; if AskForce is true, a messagebox appears asking if the user wants to force creation of a model, even though the sample has failed the correlation test
location
Type: Stemmer.CvbPoint2Dd
location from which to extract the new instance; upon return from this function, location will contain the corrected location as corrected by the correlation test

Return Value

Type: TrainingSetInstanceInfo
An TrainingSetInstanceInfo object that represents the newly added instance.
Exceptions

ExceptionCondition
ObjectDisposedExceptionIf the parent training set has already been disposed
ArgumentNullExceptionIf name is null
InvalidOperationExceptionIf no model by the given name exists in this training set
ArgumentNullExceptionIf the name parameter is null
InvalidOperationExceptionIf the model name has not yet been defined for this training set
See Also

Reference