VectorizeRegionBorders  Method

Description         This method recieves a Region Matrix, and vectorizes the region borders. Vectorization of an arc is the approximating the arc with straight line segments. The line segments are given by control points. All the arcs are given by ordered point lists, where the first point is connected with the second, the second is connected with the third, etc. This method returns the segmented region borders. The returned segmented arcs are usually topologically circles, in this case the first point of the point list and the last point of the point list are adjacents. The method returns with the list of the point lists. The precisity of the approximating can be tuned. The less the dPrecisity (dPrecisity parameter is the maximum different between a line segment, and the farest point of the given arc segment to approximate) is, the more control points rises, the more accurate the approximating is, but the more time it costs

Syntax                 lRet = [BIVision.]VectorizeRegionBorders RegionMatrix dPrecisity Width Height

Remarks             lRet                         LONGLONG Handle of the newly created Region Matrix.

                            RegionMatrix        LONGLONG Handler of the source Region Matrix.

                            dPrecisity               short                Maximum different between a line segment, and the farest point of the given arc segment to approximate.

                            Width                     short                Width of the input region matrix.

                            Height                     short                Height of the input region matrix.

See Also