No project description provided
Project description
RDP Rust
Binary version of MIT licensed RDP implementation by fhirschmann.
Binary wheels are built for Python >= 3.7
Benchmarks show approximately 60x speed increase.
Rust implementation of the Ramer-Douglas-Peucker algorithm (Ramer 1972; Douglas and Peucker 1973) for 2D data.
Installation
pip install rdp-rust
Usage
The inputs must all be floating points values.
>>> import numpy as np
>>> from rdp_rust import reduce_points
>>> arr = np.array([5.0, 0, 4, 0, 3, 0, 3, 1, 3, 2]).reshape(5, 2)
>>> reduce_points(small_arr, 0.2)
array([[5., 0.],
[3., 0.],
[3., 2.]])
>>> import numpy as np
>>> from rdp_rust import mask_points
>>> arr = np.array([5.0, 0, 4, 0, 3, 0, 3, 1, 3, 2]).reshape(5, 2)
>>> mask_points(small_arr, 0.2)
array([ True, False, True, False, True])
Example
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file rdp_rust-0.5.3-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: rdp_rust-0.5.3-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 144.4 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e292db618e809b1733fe08fce94e0f9db65f0782bd4f98ae0496394a231fa9 |
|
MD5 | f6ff9611133256dddf0fc6eefb7d56ac |
|
BLAKE2b-256 | 78630be06b160fa8ab94d662ff6690af31e1acc52d7d717de80b109b79aa9dc2 |
File details
Details for the file rdp_rust-0.5.3-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: rdp_rust-0.5.3-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b383caad1c316877248887cf6e03f839a0b36053d3ee2460f1de0a5483d2c927 |
|
MD5 | 1c871d50a13b52e985e6d214bafc7da6 |
|
BLAKE2b-256 | b6b4af33461ffbf3191f9942c34480c1ad3c6b5b049d0aa91aa9a1a4e9712267 |
File details
Details for the file rdp_rust-0.5.3-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: rdp_rust-0.5.3-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08952b179d3223780aca5480a223ac5e4b5fc93e57e2432722a445bf76887185 |
|
MD5 | 078447db104993d3d1d0b662b5b5e7d2 |
|
BLAKE2b-256 | ee1da7c645dc63abb0314d660222b1ba9543eeb35cb1b4a4e99d4179459e6cff |
File details
Details for the file rdp_rust-0.5.3-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: rdp_rust-0.5.3-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 492.1 kB
- Tags: CPython 3.7+, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74b696db90dc0606e96b7c1f43ef790594fcfc82d34bb2e659645376f17ef619 |
|
MD5 | 9974fdafa7abd11606ae44997b6333f5 |
|
BLAKE2b-256 | 36e2e066ca01466758af83b5518f61f74f3723e6345de1c9539b7bb4f9e2fddb |
File details
Details for the file rdp_rust-0.5.3-cp37-abi3-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: rdp_rust-0.5.3-cp37-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 251.1 kB
- Tags: CPython 3.7+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2144584eb4638e5742003df9d28278efdaa89c8ff14176638a20b8e8638e42 |
|
MD5 | 3ca93367f87c0d992fd6a62adb54d11b |
|
BLAKE2b-256 | 0368b077aedb11821f254971c9b6feb1dcae025c36236e6bad828f70d183efd1 |