Description This method recieves an Image, segments it, and vectorizes the edges. Vectorization of an arc is the approximating the arc with straight line segments. This method creates the image of the vectorized arcs. During the image vectorization, the image segmentation, the arc segmentation can be parametered separately. If the input image is a color image, the Red, Green and Blue values of the image is converted to only one value (square mean values). The image segmentation can be tuned by iMaxDiff, that shows the maximum different between two adjacent pixels regarded as similar pixels. The arc segmentation can be tuned by nMaxError value. The less the nMaxValue (nMaxValue parameter is the maximum different between a line segment, and the farest point of the given arc segment to approximate) is, the more control point rises, the more accurate the approximating is, but the more time it costs.
Examples The following images show the results of vectorization with different parameters.
The original image and the vectorized images with Bryant different and nMaxError = 30, 10 and 0 values.
Syntax lRet = [BIVision.]VectorizeImage hDib iMaxDiff nMaxError bShowDialog
Remarks lRet LONGLONG Handle of the newly created DIB.
hDib LONGLONG Handler of the source Dib.
iMaxDiff short The maximum difference between two neighbouring pixels in the same region. If iMaxDiff less than zero, Bryant difference will be used (square mean of all adjacent pixel differences normalized to )
nMaxError short Maximum different between a line segment, and the farest point of the given arc segment to approximate.
bShowDialog BOOL Show parameter dialog.
See Also