set_line_approx ( : : Approximation : )

Definition of the approximation error for contour display.

set_line_approx defines the approximation error for region contour display in the active window. Approximation values greater than zero cause a polygon approximation = smoothing (with a maximum polygon/contour deviation of Approximation pixel). The approximation algorithm is the same as in fetch_polygon. set_line_approx is important for contour output via set_line_style.


Parameters

Approximation (input_control)
integer -> integer
maximum deviation from the original contour.
Default value: 0
Range of values: 0 <= Approximation
Restriction: Approximation >= 0


Example
/* Calling */
set_line_approx(::Approximation:) >
set_draw(::'margin':) >
disp_region(Obj:::).

/* correspond with */
fetch_polygon(Obj::Approximation:Row,Col) >
disp_polygon(::Row,Col:).

Result

set_line_approx returns TRUE, if the parameter is correct and a window is active. Otherwise an exception is raised.


Possible Predecessors

get_line_approx


Possible Successors

disp_region


Alternatives

fetch_polygon, disp_polygon


See also

get_line_approx, set_line_style, set_draw, disp_region



Copyright © 1996-1997 MVTec Software GmbH