DecimatePoly

Simplify a 2D closed contour/polygon to within user-defined boundary offset tolerance

https://github.com/AntonSemechko/DecimatePoly

您现在正在关注此提交

编者注: This file was selected as MATLAB Central Pick of the Week

Decimate 2D contours/polygons

View DecimatePoly on File Exchange

Have you ever worked with 2D boundary shape representations and noticed that the same shape can be represented with reasonable accuracy by a much smaller number of points? Did you ever need to reduce the complexity of a 2D shape while retaining as many salient features as possible? If so then DecimatePoly.m is the function you have been looking for.

Quick Demos

DecimatePoly_demo1: Simplify a 2D contour extracted from a binary image. Three binary images are included as examples. This demo requires Image Processing Toolbox to run.

DecimatePoly_demo2: Simplifying complex shapes while retaining geometrically and visually salient features.

DecimatePoly_demo3: Use DecimatePoly.m to improve the run-time of in-polygon tests at the cost of minor misclassification errors.

Get Python version here

DecimatePoly.m was selected as Matlab Pick of the Week

License

MIT © 2019 Anton Semechko a.semechko@gmail.com

引用格式

Anton Semechko (2026). DecimatePoly (https://github.com/AntonSemechko/DecimatePoly), GitHub. 检索时间: .

致谢

启发作品: MatClust

类别

Help CenterMATLAB Answers 中查找有关 Bounding Regions 的更多信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明 Action
1.2.1.1

Use README.md from GitHub

1.2.1.0

- migrated to GitHub

1.2.0.0

Modified code according to suggestions made by Georgios Gkantzounis and Erik Husby

1.1.0.0

updated description

1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 存储库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 存储库