Skip to main content

No project description provided

Project description

RDP Rust

Build Status

Binary version of MIT licensed RDP implementation by fhirschmann.

Wheels are built for Linux Python 3.5, 3.6, and 3.7. OS X wheels are built for 3.6 and 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.]])

Example

Demo of RDP

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rdp_rust-0.4.0-cp37-cp37m-manylinux1_x86_64.whl (691.8 kB view hashes)

Uploaded CPython 3.7m

rdp_rust-0.4.0-cp37-cp37m-macosx_10_7_x86_64.whl (152.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rdp_rust-0.4.0-cp36-cp36m-manylinux1_x86_64.whl (692.2 kB view hashes)

Uploaded CPython 3.6m

rdp_rust-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl (152.7 kB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rdp_rust-0.4.0-cp35-cp35m-manylinux1_x86_64.whl (692.1 kB view hashes)

Uploaded CPython 3.5m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page