Edges

Each of the following functions references a Edges data structure as the first parameter.

Function Description

GetAngle(Edges, Index)

Returns the Angle of the indexed edge.

GetCol(Edges, Index1, Index2)

Returns the specified Column value from the indexed edge. Index1 selects the edge number, and Index2 specifies the point (0 = left-most point; 1 = right-most point; or 2 = mid-point).

GetContrast(Edges)

Returns the average contrast between the foreground and background (in grey levels, 0 to 255) found. Contrast is positive for black-to-white transitions, and negative for white-to-black transitions. The Edges structure must be created by a FindCircleMinMax function.

GetEdgeDistance(Edges)

Returns the distance between two edges (edge pair). The Edges structure must be created by a Caliper function. For more information, see Caliper.

GetMax(Edges)

Returns the radius of the maximum deviation from the best edge. The Edges structure must be created by a FindCircleMinMax function. For more information, see FindCircleMinMax.

GetMin(Edges)

Returns the radius of the minimum deviation from the best edge. The Edges structure must be created by a FindCircleMinMax function.

GetNFound(Edges)

Returns the number of edges found.

GetPosition(Edges, Index)

Returns the region X position of the edge or the edge pair center. The Edges structure must be created by a Caliper function.

GetRadius(Edges, Index)

Returns the Radius value from the indexed curved edge.

GetRow(Edges, Index1, Index2)

Returns the specified Row value from the indexed edge. Index1 selects the edge number, and Index2 specifies the point (0 = top-most point; 1 = bottom-most point; or 2 = mid-point).

GetScore(Edges, Index)

Returns the Score value from the indexed edge. Score is positive for black-to-white transitions and negative for white-to-black transitions (except for FindSegment and FindCircleMinMax, where Score is always positive). For more information, see FindSegment.

GetSDev(Edges)

Returns the standard deviation value. The Edges structure must be created by a FindCircleMinMax function.

Note: This calculation is a biased standard deviation, where the denominator is N-1 (an unbiased standard deviation has a denominator of N).