Package micycle.pgs.commons
Class GaussianLineSmoothing
java.lang.Object
micycle.pgs.commons.GaussianLineSmoothing
Line gaussian smoothing.
- Author:
- Julien Gaffuri
-
Method Summary
-
Method Details
-
get
public static org.locationtech.jts.geom.LineString get(org.locationtech.jts.geom.LineString line, double sigmaM) - Parameters:
line
-sigmaM
-
-
get
public static org.locationtech.jts.geom.LineString get(org.locationtech.jts.geom.LineString line, double sigmaM, double resolution) Line gaussian smoothing. The position of each point is the average position of its neighbors, weighted by a gaussian kernel. For non-closed lines, the initial and final points are preserved.- Parameters:
line
- The input linesigmaM
- The standard deviation of the gaussian kernel. The larger, the more smoothed.resolution
- The target resolution of the geometry. This parameter is used to filter/simplify the final geometry.
-