Lazarus

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

Title: Line Simplification
Post 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
Title: Re: Line Simplification
Post by: wp on May 21, 2019, 02:42:46 pm
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.
Title: Re: Line Simplification
Post by: avra on May 22, 2019, 04:03:43 pm
https://web.archive.org/web/20120622080422/https://www.simdesign.nl/douglaspeucker.html
https://github.com/WouterVanNifterick/delphi-maps/blob/master/source/DelphiMaps.DouglasPeuckers.pas
TinyPortal © 2005-2018