imaqArrayToComplexPlane

NI Vision for LabWindows/CVI Function

imaqArrayToComplexPlane

Usage

int imaqArrayToComplexPlane(Image* dest, const Image* source, const float* newPixels, ComplexPlane plane);

Purpose

Replaces a plane of a complex image with the given array of pixel values. The array must be the same size as the source image.

Image Types Supported

IMAQ_IMAGE_COMPLEX

Parameters

Name

Type

Description

dest Image* The destination image.
source const Image* The source image.
newPixels const float* The two-dimensional array of pixel values. This array must be the same size as the source image. This parameter is required and cannot be NULL.
plane ComplexPlane The plane to replace. Specify IMAQ_REAL to replace the real plane or IMAQ_IMAGINARY to replace the imaginary plane.

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().