public double SmoothAngle(double angle) { var estimatedPoint = _angleFilter.GetEstimatedPoint(new System.Drawing.Point((int)(angle * Factor), 0)); return(estimatedPoint.X / Factor); }
public double SmoothDepth(double depth) { var estimatedPoint = _depthFilter.GetEstimatedPoint(new System.Drawing.Point((int)(depth * Factor), 0)); return(estimatedPoint.X / Factor); }
public Point SmoothPoint(Point point) { var estimatedPoint = _positionFilter.GetEstimatedPoint(new System.Drawing.Point((int)(point.X * Factor), (int)(point.Y * Factor))); return(new Point(estimatedPoint.X / Factor, estimatedPoint.Y / Factor)); }