Runs the trained pattern on the input image and returns the result. The object in the input image should have the approximate appearance to the object in the train images with respect to position and orientation.
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.24.0.0
Syntax
Parameters
- image
- Type: Cognex.Vision IImage
The input image to process. Must be a Image8Grey or Image24PlanarColor.
- region
- Type: Cognex.Vision IRegion
The region of image to process. Only the pixels which lie within this region will be considered. Supply null to process the entire image.
Return Value
Type: ClassifyResultA ClassifyResult containing the results of the classification.
Exceptions
| Exception | Condition |
|---|---|
| OperatorNotTrainedException | If the pattern is not trained. |
| ImageException | If the supplied image is not allocated. |
| ImageException | If the supplied image is not an Image8Grey or an Image24PlanarColor. |
| InternalErrorException | If the supplied image could not subsampled. |
| SecurityViolationException | Security is not enabled for this vision tool. |
Remarks
the results returned are in descending order with respect to the scores. The first result contains the label and the score.
See Also