Package net.imglib2.mesh.alg.zslicer
Class RamerDouglasPeucker
- java.lang.Object
-
- net.imglib2.mesh.alg.zslicer.RamerDouglasPeucker
-
public class RamerDouglasPeucker extends Object
-
-
Constructor Summary
Constructors Constructor Description RamerDouglasPeucker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Contoursimplify(Contour in, double epsilon)Given a contour, build a similar contour with fewer points.static Slicesimplify(Slice slice, double epsilon)Applies the Ramer-Douglas-Peucker algorithm to the contours of a slice.
-
-
-
Method Detail
-
simplify
public static final Slice simplify(Slice slice, double epsilon)
Applies the Ramer-Douglas-Peucker algorithm to the contours of a slice.
-
simplify
public static final Contour simplify(Contour in, double epsilon)
Given a contour, build a similar contour with fewer points.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.
- Parameters:
in- the contour to simplify.epsilon- distance threshold.- Returns:
- a new simplified contour.
- See Also:
- Ramer–Douglas–Peucker Algorithm (Wikipedia)
-
-