public class RamerDouglasPeucker extends Object
| Constructor and Description |
|---|
RamerDouglasPeucker() |
| Modifier and Type | Method and Description |
|---|---|
static Contour |
simplify(Contour in,
double epsilon)
Given a contour, build a similar contour with fewer points.
|
static Slice |
simplify(Slice slice,
double epsilon)
Applies the Ramer-Douglas-Peucker algorithm to the contours of a slice.
|
public static final Slice simplify(Slice slice, double epsilon)
public static final Contour simplify(Contour in, double epsilon)
The Ramer–Douglas–Peucker algorithm (RDP) is an algorithm for reducing the number of points in a curve that is approximated by a series of points.
in - the contour to simplify.epsilon - distance threshold.Copyright © 2016–2023 ImgLib2. All rights reserved.