IsValid Method (HObject)

Galv Coil Eye Label OCR

Halcon..::..IsValid Method (HObject)

Determines whether the specified halcon object, image, xld or region is not null and is initialized.

Namespace:  Rti.Halcon
Assembly:  GalvCoilEyeLabelOcr (in GalvCoilEyeLabelOcr.exe)

Syntax


public static bool IsValid(
	HObject from
)
Public Shared Function IsValid ( _
	from As HObject _
) As Boolean
public:
static bool^ IsValid(
	HObject^ from
)

Parameters

from
Type: HObject
Any Halcon object.

Return Value

true if the specified from is valid; otherwise, false.

Examples


if (myRegion.IsValid()) myRegion.Connection(); .