EditPolygon
Inserts an interactive polygon control into the spreadsheet. When first inserted into a cell, the function's property sheet will be displayed. Go to the Points tab to enable the Edit Graphics menu option and enter Interactive Graphics Mode. For more information, see Interactive Graphics Mode.
EditPolygon Inputs
Syntax: EditPolygon(Image,Fixture.Row,Fixture.Column,Fixture.Theta,Add Points,Remove Points,Move Points,Move Entire Polygon,Scale,Rotate,Name,Show)
General Tab
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
This parameter must reference a spreadsheet cell that contains an Image data structure; by default, this parameter references A0, the cell containing the AcquireImage Image data structure. This parameter can also reference other Image data structures, such as those returned by the Vision Tool Image functions or Coordinate Transforms Functions. For more information, see Image or Coordinate Transforms Functions. |
|||||||
Specifies the image coordinate system in which the input polygon is defined.
|
|||||||
If checked, points can be added to the polygon during graphical editing. |
|||||||
If checked, points can be removed from the polygon during graphical editing. Note: To remove the point, press and hold the Shift key while clicking on the point you want to delete.
|
|||||||
If checked, points can be moved within the polygon during graphical editing. |
|||||||
If checked, the entire polygon can be moved during graphical editing. |
|||||||
If checked, the polygon can be scaled during graphical editing. |
|||||||
If checked, the polygon can be rotated during graphical editing. |
|||||||
Specifies a text label for the EditPolygon control element in the spreadsheet. |
|||||||
Specifies the display mode for the EditPolygon graphics overlay on the image.
|
Points Tab
The Points tab of the EditPolygon function is comprised of a table that lists the number of points, and their Row/Column location, which can be manually specified using the Row and Column edit controls to the right of the table. Press the Insert button to add points.
By default, the polygon shape is comprised of three points. The Remove button is enabled if there are more than three points, and is used to remove a point from the polygon.
EditPolygon Outputs
Results |
A Polygon data structure. |