com.supermap.data
类 PathSmoothTool
- java.lang.Object
-
- com.supermap.data.PathSmoothTool
-
public class PathSmoothTool extends java.lang.Object
轨迹优化工具类使用方法:
PathSmoothTool pathSmoothTool = new PathSmoothTool(); pathSmoothTool.setIntensity(2);//设置滤波强度,默认3 List outList = pathSmoothTool.pathOptimize(sourcePositionList);
-
-
构造器概要
构造器 构造器和说明 PathSmoothTool()
构造方法
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 static float
calculateLineDistance(Point2D var0, Point2D var1)
计算距离int
getIntensity()
获取滤波强度float
getThreshhold()
获取滤波阈值java.util.List<Point2D>
kalmanFilterPath(java.util.List<Point2D> originlist)
轨迹线路滤波Point2D
kalmanFilterPoint(Point2D lastLoc, Point2D curLoc)
单点滤波java.util.List<Point2D>
pathOptimize(java.util.List<Point2D> originlist)
轨迹平滑优化java.util.List<Point2D>
reducerVerticalThreshold(java.util.List<Point2D> inPoints)
轨迹抽稀java.util.List<Point2D>
removeNoisePoint(java.util.List<Point2D> originlist)
轨迹去噪,删除垂距大于20m的点void
setIntensity(int mIntensity)
设置滤波强度void
setNoiseThreshhold(float mnoiseThreshhold)
设置降噪阈值void
setThreshhold(float mThreshhold)
设置滤波阈值
-
-
-
方法详细资料
-
getIntensity
public int getIntensity()
获取滤波强度- 返回:
-
setIntensity
public void setIntensity(int mIntensity)
设置滤波强度- 参数:
mIntensity
-
-
getThreshhold
public float getThreshhold()
获取滤波阈值- 返回:
- 滤波阈值
-
setThreshhold
public void setThreshhold(float mThreshhold)
设置滤波阈值- 参数:
mThreshhold
-
-
setNoiseThreshhold
public void setNoiseThreshhold(float mnoiseThreshhold)
设置降噪阈值- 参数:
mnoiseThreshhold
-
-
pathOptimize
public java.util.List<Point2D> pathOptimize(java.util.List<Point2D> originlist)
轨迹平滑优化- 参数:
originlist
- 原始轨迹list,list.size大于2- 返回:
- 优化后轨迹list
-
kalmanFilterPath
public java.util.List<Point2D> kalmanFilterPath(java.util.List<Point2D> originlist)
轨迹线路滤波- 参数:
originlist
- 原始轨迹list,list.size大于2- 返回:
- 滤波处理后的轨迹list
-
removeNoisePoint
public java.util.List<Point2D> removeNoisePoint(java.util.List<Point2D> originlist)
轨迹去噪,删除垂距大于20m的点- 参数:
originlist
- 原始轨迹list,list.size大于2- 返回:
-
kalmanFilterPoint
public Point2D kalmanFilterPoint(Point2D lastLoc, Point2D curLoc)
单点滤波- 参数:
lastLoc
- 上次定位点坐标curLoc
- 本次定位点坐标- 返回:
- 滤波后本次定位点坐标值
-
reducerVerticalThreshold
public java.util.List<Point2D> reducerVerticalThreshold(java.util.List<Point2D> inPoints)
轨迹抽稀- 参数:
inPoints
- 待抽稀的轨迹list,至少包含两个点,删除垂距小于mThreshhold的点- 返回:
- 抽稀后的轨迹list
-
-