Interpolate1D Method

NI Vision for Visual Basic

Interpolate1D Method

Syntax

CWIMAQVision.Interpolate1D SourceImage, XCoordinates, YCoordinates, InterpolationMethod, SubPixelAccuracy, InterpolatedArray

Return Type

Long

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

Purpose

Obsolete—Use InterpolatePoints instead. Interpolates the pixel values of an image over specified points.

Remarks

Use this method with U8, I16, and RGB32 images.

You can use this method with the CWIMAQRegions.RegionsProfile method to obtain the XCoordinates and YCoordinates arrays.

Parameters

SourceImage As CWIMAQImage

The image containing the values to interpolate.

XCoordinates As Variant

An array consisting of the x-coordinates of points over which to interpolate.

YCoordinates As Variant

An array consisting of the y-coordinates of points over which to interpolate.

InterpolationMethod As CWIMAQInterpolateMethods

The method used to perform the interpolation for subpixel measurements. Three values are valid:

  • cwimaqInterpolateBiLinear--bilinear interpolation

  • cwimaqInterpolateQuadratic--quadratic interpolation

  • cwimaqInterpolateCubic--cubic spline interpolation

SubPixelAccuracy As CWIMAQSubPixelAccuracyValues

The number of samples to obtain from a pixel. For example, a subpixel accuracy of one-fourth specifies that the method splits each pixel into four subpixels.

InterpolatedArray As Variant

On return, the resampled pixel data.

See Also

InterpolatePoints

CWIMAQRegions.RegionsProfile