SortEdges
Sorts arrays of edges by the specified criteria. For more information, see Edge.
SortEdges Inputs
Syntax: SortEdges (Edges,Number to Sort,Sort By,Show)
A reference to a spreadsheet cell containing an Edges data structure. The Edges data structure must consist of multiple straight-line edges. |
|||||||||||
Specifies the number of edges to sort (0 to 160; default = 2). |
|||||||||||
Specifies the method by which the edges are sorted.
|
|||||||||||
Specifies the display mode for SortEdges graphical overlays on top of the image.
|
SortEdges Outputs
Returns |
An Edges data structure containing sorted edges, or #ERR if any of the input parameters are invalid. |
Results |
When SortEdges is initially inserted into a cell, a result table is created in the spreadsheet. |
SortEdges Vision Data Access Functions
The following Vision Data Access functions are automatically inserted into the spreadsheet to create the result table. For more information, see Edges
Angle |
GetAngle(Edges, Index) |
The angle of the specified edge. |
Row0 |
GetRow(Edges, Edge Index, 0) |
The row coordinate of the first endpoint. |
Col0 |
GetCol(Edges, Edge Index, 0) |
The column coordinate of the first endpoint. |
Row1 |
GetRow(Edges, Edge Index, 1) |
The row coordinate of the second endpoint. |
Col1 |
GetCol(Edges, Edge Index, 1) |
The column coordinate of the second endpoint. |
Score |
GetScore(Edges, Edge Index) |
The edge contrast score. |