CogCoreConverters MakeICogVisionData Method Cognex VisionPro 9.20
Convert the supplied IImage to an equivalent VisionPro object if possible.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.VisionInterop (in Cognex.VisionPro.VisionInterop.dll) Version: 80.0.0.0
Syntax

public static ICogVisionData MakeICogVisionData(
	IImage image
)

Parameters

image
Type: Cognex.Vision IImage
The Vision IImage object to be converted.

Return Value

Type: ICogVisionData
An equivalent VisionPro object, or null if input is null.
Exceptions

ExceptionCondition
CogImageBadTypeException If the input argument cannot be converted to one of the supported object types. We currently support conversions to CogImage8Grey or CogImage24PlanarColor.
See Also