absolute tolerance of reducepoly

4 次查看(过去 30 天)
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?

采纳的回答

Anmol Dhiman
Anmol Dhiman 2021-4-8
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 个评论
Margaret Pavlovich
Margaret Pavlovich 2021-4-12
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by