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: TrainingSetInstanceInfoAn TrainingSetInstanceInfo object that represents the newly added instance.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | If the parent training set has already been disposed |
ArgumentNullException | If name is null |
InvalidOperationException | If no model by the given name exists in this training set |
ArgumentNullException | If the name parameter is null |
InvalidOperationException | If the model name has not yet been defined for this training set |
See Also