76 double *ox, *oy, *nx, *ny;
82 ja, jd, i, j, k, n, inu, it;
90 double sx[18], sy[18];
108 while (at_num < o_num) {
157 while (at_num < o_num) {
158 if (o_num - at_num > 14)
178 for (j = at_num; j < n; j++) {
194 dx = sx[ja] - sx[jd];
195 dy = sy[ja] - sy[jd];
196 t = thresh * hypot(dx, dy);
197 beta = sx[jd] * sy[ja] - sx[ja] * sy[jd];
202 ij = (ja + jd + 1) >> 1;
205 for (j = jd + 1; j < ja; j++) {
206 sqdist = fabs(dx * sy[j] - dy * sx[j] + beta);
207 if (sqdist > fpdist) {
228 for (j = inu - 1; j > 0; j--) {
int dig_prune(struct line_pnts *points, double thresh)
Feature geometry info - coordinates.
double * y
Array of Y coordinates.
double * x
Array of X coordinates.
int n_points
Number of points.