Creates a ClassifyImageItem object and adds it the Images collection.
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.21.1.1
Syntax
Parameters
- image
- Type: Cognex.Vision IImage
The image to add.
Return Value
Type: StringExceptions
| Exception | Condition |
|---|---|
| ArgumentException | If the supplied image is less than 16x16 pixels, or the subsampled image is less than 16x16 pixels. |
| 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. |
Remarks
AddImage will use the Region if specified to generate a new image preserving the aspect ratio.
Remarks
Changed Raised when the value of this property changes. The following state flag may be affected:
See Also