ClassifyPattern AddImage Method Cognex VisionPro 9.22

Creates a ClassifyImageItem object and adds it the Images collection.

Namespace: Cognex.Vision.ViDiEL
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.22.2.0
Syntax

public string AddImage(
	IImage image
)

Return Value

Type: String
Exceptions

ExceptionCondition
ArgumentExceptionIf the supplied image is less than 16x16 pixels, or the subsampled image is less than 16x16 pixels.
ImageExceptionIf the supplied image is not allocated.
ImageExceptionIf the supplied image is not an Image8Grey or an Image24PlanarColor.
InternalErrorExceptionIf 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