Region

Creates a fixtured Region structure.

Region Inputs

Parameter Description

Image

This argument must reference a spreadsheet cell that contains a valid Image data structure. By default, the cell referenced is $A$0, which contains the image data structure returned by AcquireImage.

Fixture

Specifies the image coordinate system in which the region is defined.

Row

The row offset.

Column

The column offset.

Theta

The orientation.

Region

Specifies the position, size, rotation, and curvature. Regions are always defined within the coordinate system of a Fixture.

X

The x-offset of the origin, in fixture coordinates.

Y

The y-offset of the origin, in fixture coordinates.

High

The dimension along the region's x-axis.

Wide

The dimension along the region's y-axis.

Angle

The orientation, in fixture coordinates.

Curve

The angular deviation between the region's x-axis and the opposing boundary line.

Show

Specifies the display mode for the Region graphic overlay on the image.

0 = hide all (default)

The region structure graphic will be hidden unless the cell containing the Region function is highlighted in the spreadsheet.

2 = input graphics only

The region structure graphic is displayed at all times.

Note: The Fixture and Region parameters must be defined within the bounds of the image; otherwise, the function will return #ERR.

Region Outputs

Returns

A region data structure, or #ERR if any of the input parameters are invalid.

Results

When Region is initially inserted into a cell, the following Structures Vision Data Access Functions are automatically inserted into the spreadsheet to create a result table:

Label Function Description

X

GetX(Region)

The x-coordicate of the region's origin, in image coordinates.

Y

GetY(Region)

The y-coordicate of the region's origin, in image coordinates.

Height

GetHeight(Region)

The height value.

Width

GetWidth(Region)

The width value.

Angle

GetAngle(Region)

The orientation, in image coordinates.

Curve

GetCurve(Region)

The angular deviation between the region's x-axis and the opposing boundary line.