필터 지우기
필터 지우기

absolute tolerance of reducepoly

조회 수: 1 (최근 30일)
Margaret Pavlovich
Margaret Pavlovich 2021년 4월 5일
댓글: Margaret Pavlovich 2021년 4월 12일
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