imaqGetGeometricFeaturesFromCurves

NI Vision for LabWindows/CVI Function

imaqGetGeometricFeaturesFromCurves

Usage

FeatureData* imaqGetGeometricFeaturesFromCurves(const Curve* curves, unsigned int numCurves, const FeatureType* featureTypes, unsigned int numFeatureTypes, unsigned int* numFeatures);

Purpose

Returns the geometric features described by a set of curves.

Image Types Supported

IMAGE_U8

Parameters

Name

Type

Description

curves const Curve* The array of curve reports. Use imaqExtractCurves() to generate this array. The parameter is required and cannot be NULL.
numCurves unsigned int The number of curves in the supplied curves array.
featureTypes const FeatureType* An array of the types of geometric features to extract from the passed curves. Set this parameter to NULL to extract all of the features.
numFeatureTypes unsigned int The size of the passed featureTypes array.
numFeatures unsigned int* On return, the number of features described by the curves. Set this parameter to NULL if you do not wish to return information about the number of features described by the curves.

Return Value

Type

Description

FeatureData* On success, this function returns an array of features described by the curves. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the return value, dispose of the pointer by calling imaqDispose().