Unwrap Method

NI Vision for Visual Basic

Unwrap Method

Syntax

CWIMAQVision.Unwrap SourceImage, DestImage, Annulus [, BaselineOrientation = cwimaqBaselineOrientationInside] [, InterpolationMethod = cwimaqInterpolateBiLinear]

Return Type

Long

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

Purpose

Unwraps a circular strip from an image into a rectangular strip.

Remarks

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

Parameters

SourceImage As CWIMAQImage

The input image.

DestImage As CWIMAQImage

The resulting image.

Annulus As CWIMAQAnnulus

Defines the circular strip.

BaselineOrientation As Variant

[Optional] A CWIMAQBaselineOrientations constant that specifies the orientation of the image data within the circular strip.

This parameter has a default value of cwimaqBaselineOrientationInside.

InterpolationMethod As Variant

[Optional] A CWIMAQInterpolateMethods constant that specifies the interpolation algorithm used in the unwrapping process.

This parameter has a default value of cwimaqInterpolateBiLinear.

Example

Unwrap Barcode Example