# TransPixelToFixture

Converts a point in Pixel coordinates to Fixture A fixture is a coordinate location on the image that keeps the tool in the place determined by the fixture. coordinates.

Inputs

The TransPixelToFixture function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. has the following syntax:

TransPixelToFixture(X, Y, Theta, X, Y, Show)

See the table for a description of the available parameters.

Parameter | Description
Fixture | Specifies the fixture coordinate system.
X | The X-offset of the origin, in fixture coordinates.
Y | The Y-offset of the origin, in fixture coordinates.
Theta | The rotation from the image X-axis, in the image coordinate system. (+/-360 degrees clockwise)
Point | Specifies the coordinates of the point, in pixel coordinates.
X | X-offset from the fixture origin.
Y | Y-offset from the fixture origin.
Show | Specifies the display mode for the TransPixelToFixture graphic overlay on the image.
0 = hide all (default) | The point is not displayed, unless the cell containing the TransPixelToFixture function is highlighted in the spreadsheet.
2= input graphics only | The point is always displayed.

Outputs

Returns | A Point data structure containing the transformed point, or #ERR if any of the input parameters are invalid.
Results | When the function is initially inserted into a cell, a result table is created in the spreadsheet.

Vision Data Access functions

The Structures Vision Data Access functions automatically inserted into the spreadsheet to create the results table are as follows:

Label | Function | Description
--- | --- | ---
X | GetX(Point) | The X-coordinate of the transformed point.
Y | GetY(Point) | The Y-coordinate of the transformed point.