Ramer-Douglas-Peuker algorithm python implementation
Project description
Ramer-Douglas-Peucker
Ramer-Douglas-Peucker python implementation.
Installation
pip install rdp-algo
Usage
The rdp function supports both lists and numpy arrays of arbitrary dimensions.
>>> from rdp_algo import rdp
>>> rdp([[0,0],[1,1],[2,0]], epsilon=1)
[[0,0],[2,0]]
>>> import numpy as np
>>> from rdp_algo import rdp
>>> rdp(np.array([[0,0],[1,1],[2,0]]), epsilon=1)
array([[0,0],[2,0]])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rdp-algo-0.1.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file rdp-algo-0.1.1.tar.gz
.
File metadata
- Download URL: rdp-algo-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86eae5c7e8ed1e8103fa1072eabf62d7869e7666bf81cc42576fa091c5504815 |
|
MD5 | 67c88ce6201c68b5a3c7e86bca57a4f9 |
|
BLAKE2b-256 | 2193ff2dbb504d74824396ebb572042e4f3b488b39c1d0bb8640dbdc5e216daa |
File details
Details for the file rdp_algo-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: rdp_algo-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f872594c24a4d38c6fa431256e9f2924d3aa9a2ee2752a2a8cfba427c2bdd0 |
|
MD5 | bf78e2dbdcd10525222dfa145e7bda71 |
|
BLAKE2b-256 | fee2b770140394cc1bd2ede40b0ca23852e1f89ea8d9d75691454f9f776d9dcf |