absolute tolerance of reducepoly

6 visualizaciones (últimos 30 días)
Margaret Pavlovich
Margaret Pavlovich el 5 de Abr. de 2021
Comentada: Margaret Pavlovich el 12 de Abr. de 2021
reducepoly has an optional input "tolerance" which is a number in the range [0,1]. Is there a way to specify the absolute tolerance or another way to achieve this?

Respuesta aceptada

Anmol Dhiman
Anmol Dhiman el 8 de Abr. de 2021
Hi Margaret,
According to the documentation, the only way to specify the absolute tolerence ( maximum reduction in points) is by keeping it 1.
Hope it helps
Anmol
  1 comentario
Margaret Pavlovich
Margaret Pavlovich el 12 de Abr. de 2021
I meant absolute tolerance as opposed to relative tolerance. That is, I wanted to reduce the number of points on the curve while keeping the reduced curve within epsilon of the original. It is not clear what value of epsilon the tolerance parameter in the function corresponds to, though I assume it is something like tolerance*range.
I solved this by implementing Ramer–Douglas–Peucker algorithm on my own.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by