Herror ::gen_contour_polygon_xld (
    Hobject *Contour,
    const HTuple &Row,
    const HTuple &Col
)
HXLDCont HXLDCont::GenContourPolygonXld (
    const HTuple &Row,
    const HTuple &Col
)

Generate an XLD contour from a polygon (given as tuples).

::gen_contour_polygon_xld generates an XLD contour Contour from a polygon given in the tuples Row and Col. This operator is useful if contours have been obtained from routines outside the core library, but higher level operators, e.g., polygon approximation and extraction of parallels, are to be performed on the contours.


Parameters

Contour (output_object)
xld_cont -> Hobject * : HXLDCont
Resulting contour.

Row (input_control)
number-array -> HTuple.double / long
Row coordinates of the polygon.
Default value: '[0,1,2,2,2]'
Suggested values: 0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 200, 500

Col (input_control)
number-array -> HTuple.double / long
Column coordinates of the polygon.
Default value: '[0,0,0,1,2]'
Suggested values: 0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 200, 500


Possible Predecessors

::get_region_contour


Possible Successors

::smooth_contours_xld, ::gen_polygons_xld


See also

::gen_contours_skeleton_xld


Module

Sub-pixel operators



Copyright © 1996-2002 MVTec Software GmbH