Template Function SimplifyLine::DouglasPeucker

Function Documentation

template<typename T, int dim>
Matrix<T> SimplifyLine::DouglasPeucker(const Matrix<T> &points, T max_distance)

Will perform Douglas Peucker Simplication on the line.

Return

Matrix<T> The simplified line

Template Parameters
  • T:

  • dim: The dimesion of the line, 2D or 3D

Parameters
  • points: Matrix of 2D or 3D points

  • max_distance: Maximum distance of point on line