GetGeometricTemplateFeatureInfo Method

NI Vision for Visual Basic

GetGeometricTemplateFeatureInfo Method

Syntax

CWIMAQVision.GetGeometricTemplateFeatureInfo Template, Features

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Returns the features learned and stored in the passed geometric template.

Remarks

Use one of the following methods of configuring the template image you want to use with this method:

  1. Load a previously saved template image that you created using the NI Vision Template Editor using CWIMAQVision.ReadImageAndVisionInfo.
  2. Note  To use the NI Vision Template Editor to configure a template image, click Start»All Programs»National Instruments»Vision»Template Editor.

  3. Use CWIMAQVision.LearnGeometricPattern to learn the template image.
  4. Use this method with U8 images.

    Parameters

    Template As CWIMAQImage

    The geometric template.

    Features As CWIMAQGeometricFeatureReport

    The set of geometric features returned from the template.

    See Also

    CWIMAQVision.LearnGeometricPattern