Simple Rammer-Douglas-Peuker algorithm implementation.
Project description
Ramer-Douglas-Peucker
Ramer-Douglas-Peucker python implementation.
Installation
pip install pyrdp
Usage
The rdp function supports both lists and numpy arrays of arbitrary dimensions.
>>> from pyrdp import rdp
>>> rdp([[0,0],[1,1],[2,0]], epsilon=1)
[[0,0],[2,0]]
>>> import numpy as np
>>> from pyrdp import rdp
>>> rdp(np.array([[0,0],[1,1],[2,0]]), epsilon=1)
array([[0,0],[2,0]])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrdp-0.1.4.tar.gz
(2.4 kB
view details)
Built Distribution
pyrdp-0.1.4-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file pyrdp-0.1.4.tar.gz
.
File metadata
- Download URL: pyrdp-0.1.4.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.5.3 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f9e2f652259c63099415ce601dea1df60061152bb3912a19eae47e32fd0f4d0 |
|
MD5 | 1861cc83f710b246a70903a962448270 |
|
BLAKE2b-256 | 5da34673306b8dc810a96535754c2d0ec482388fe9fb8aaa26fe2b921d8e2d02 |
File details
Details for the file pyrdp-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pyrdp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.5.3 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80eb5871c5971c9b8400f369fb426cca9892312808c9775bc56e427bb1883aa1 |
|
MD5 | a1243a6afd16d7a04ca5528b07948377 |
|
BLAKE2b-256 | e212ff13397846f7fe2fb6e5e1d4762eaf9009db3112feff28e5668e85c2eb29 |