imaqConvex

NI Vision for LabWindows/CVI Function

imaqConvex

Usage

int imaqConvex(Image* dest, const Image* source);

Purpose

Computes the convex envelope for each labeled particle in the source image. If the source image contains more than one particle, you must label each particle with imaqLabel() before calling this function.

Note  This function is obsolete. The replacement function is imaqConvexHull(), which allows you to specify the connectivity of your particles.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16

Parameters

Name

Type

Description

dest Image* The destination image.
source const Image* The image containing the labeled particles whose convex envelopes the function calculates.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().