|
|
| File Information |
| Description |
dpsimplify uses the recursive Douglas-Peucker line simplification algorithm to reduce the number of vertices in a polyline according to a specified tolerance. The algorithm is also know as Iterative Endpoint Fit algorithm. dpsimplify can handle polylines and polygones in 2d and higher dimensions.
The submission now contains another m-file (dpsimplify_octave.m) that has been slightly modified to run with GNU Octave.
Syntax:
[ps,ix] = dpsimplify(p,tol)
where p is a nxm matrix that contains n vertices in m dimensions.
For additional information on the algorithm follow this link
http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm |
| Acknowledgements |
This submission has inspired the following:
Region Growing (2D/3D grayscale)
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 22 Aug 2008 |
algorithm works also for polygons (start and end point of the polyline are the same). |
| 23 Sep 2008 |
First, the algorithm can now handle nans in the vertex array. It assumes that nans in the array serve as separator of single polylines and treats each polyline/polygon separately. |
| 10 Jan 2009 |
only minor changes: added some comments and changed the link to more information since it was dead. |
| 15 Jun 2009 |
Removed a bug in calculating the second output argument. Improved handling of lines with only one segment. |
| 14 Jun 2010 |
Added some information in the description. |
| 13 Jul 2010 |
added m-file that runs with GNU Octave |
|
Contact us at files@mathworks.com