Recent

Author Topic: Line Simplification  (Read 438 times)

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Line Simplification
« 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
Lazarus 2.0.2 64b on Debian LXDE 10

wp

  • Hero Member
  • *****
  • Posts: 6495
Re: Line Simplification
« Reply #1 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.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

avra

  • Hero Member
  • *****
  • Posts: 1737
    • Additional info
« Last Edit: May 23, 2019, 09:37:01 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib