Class GaussianLineSmoothing


  • public class GaussianLineSmoothing
    extends Object
    Line gaussian smoothing.
    Author:
    julien Gaffuri
    • Constructor Detail

      • GaussianLineSmoothing

        public GaussianLineSmoothing()
    • Method Detail

      • get

        public static org.locationtech.jts.geom.LineString get​(org.locationtech.jts.geom.LineString line,
                                                               double sigmaM)
        Parameters:
        line -
        sigmaM -
        Returns:
      • 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 the final geometry.
        Returns: