Creates a ClassifyTrainItem object and adds it to the LabeledImages collection.
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.21.1.1
Syntax
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | If a train item with the image id and the class id already exists. |
| ArgumentException | If the image id is already in the LabeledImages. |
| ArgumentOutOfRangeException | If the class id is not found in the Classes collection. |
| ArgumentOutOfRangeException | If the image id is not found in the Images collection. |
Remarks
The method assigns a class to an image using the ids from the Classes and the Images collections.
If the pattern is trained, the pattern will become untrained.
Changed Raised when the value of this property changes. The following state flags may be affected:
See Also