Class GaussianLineSmoothing

java.lang.Object
micycle.pgs.commons.GaussianLineSmoothing

public class GaussianLineSmoothing extends Object
Line gaussian smoothing.
Author:
Julien Gaffuri
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.LineString
    get(org.locationtech.jts.geom.LineString line, double sigmaM)
     
    static org.locationtech.jts.geom.LineString
    get(org.locationtech.jts.geom.LineString line, double sigmaM, double resolution)
    Line gaussian smoothing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 line
      sigmaM - 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.