Lazarus
Programming => Graphics and Multimedia => TAChart => Topic started by: tudi_x on May 21, 2019, 01:59:59 pm

hi,
i need to write some line simplification code (ex. https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm ).
i was wondering how line simplification is achieved in TAChart.
i am interested in how from N point to leave only n points with least degradation of the theoretical curve.
thank you

This algorithm is not available within TAChart. Of course you can use TAChart to plot the initial and final curves, but the algorithms has to be written by yourself.

https://web.archive.org/web/20120622080422/https://www.simdesign.nl/douglaspeucker.html
https://github.com/WouterVanNifterick/delphimaps/blob/master/source/DelphiMaps.DouglasPeuckers.pas