Pink 0.9

curve2segments.cxx File Reference

computes a covering of a digital curve by digital straigh line segments More...


Detailed Description

computes a covering of a digital curve by digital straigh line segments

Usage: curve2segments curve.list [tolerance] segments.list

Description:

Computes a covering of a digital curve by digital straight line segments. The input file contains a curve which is specified by the ordered list of its points. The output file is an ordered list of points, which are the extremities of the segments.

Parameter tolerance gives the thickness of the digital straight line segments. Default value is 1.

Warning:
Curves must be 8-curves in 2D of 26-curves in 3D. Greedy algorithm.

Types supported: curve 2D, curve 3D

Category: geo

Author:
Michel Couprie