imaqLinearAverages2
Usage
LinearAverages* imaqLinearAverages2(Image* image, LinearAveragesMode mode, Rect rect);
Purpose
Computes the mean line profile of an image.
Image Types Supported
IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL
Parameters
Name
|
Type
|
Description
|
---|---|---|
image | Image* | The image on which the function calculates pixel value averages. |
mode | LinearAveragesMode | The types of linear averages the function should compute. |
rect | Rect | Sets the rectangular area in which the function calculates the averages. Set this parameter to IMAQ_NO_RECT to calculate the averages on the whole image. |
Return Value
Type |
Description |
---|---|
LinearAverages* | On success, this function returns a structure containing the linear averages of the image. 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(). |