Python bindings for gorpho
Project description
pygorpho
Python bindings for gorpho.
This is a Python library for fast 3D mathematical morphology using CUDA. Currently, the library provides:
- Dilation and erosion for grayscale 3D images.
- Support for flat or grayscale structuring elements.
- A van Herk/Gil-Werman implementation for fast dilation/erosion with flat line segments in 3D.
- Automatic block processing for 3D images which can't fit in GPU memory.
Documentation can be found on https://pygorpho.readthedocs.io
Installation
First, make sure you have CUDA Toolkit 9.2 or later installed. Then, install with pip:
pip install pygorpho
Installing from source
Again, make sure you have CUDA Toolkit 9.2 or later installed. Also, you need a compatible C++ compiler, which supports C++14. Then, following these instructions should allow you to build and install the package:
- Clone the repo:
git clone https://github.com/patmjen/pygorpho.git
- Change directory:
cd pygorpho
- Install the required Python packages:
pip install numpy scikit-build cmake ninja
- Build and install:
python setup.py install
That should be it! To test, run python
, and try to import pygorpho as pg
.
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
pygorpho-0.7.1.tar.gz
(3.5 kB
view hashes)
Built Distributions
Close
Hashes for pygorpho-0.7.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7293d72a6ce30063d9dac7b1541591fd146d7a3ab7e4fdf7e70cea2ececd946b |
|
MD5 | 7071ff52e38df36702781e9704a84bc0 |
|
BLAKE2b-256 | c04ac954ba8bed8b159c32206ad4c58d67a95b7ad6a8700fe43edc3429da5537 |
Close
Hashes for pygorpho-0.7.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7724f0e12ac96fa20eb550f104968b849ee9eed74d097054b54754a451ebfb5 |
|
MD5 | d006a36f4c53674c25d76ffe1fe23576 |
|
BLAKE2b-256 | bfc2ea01a8d8add4aab843829ca1c48f386660b12b45fd96184c142315182ae6 |
Close
Hashes for pygorpho-0.7.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d46bdd6a6c3128a559779bd9c58ed422e560ec524b40f9375ced54497d37fdf |
|
MD5 | 5348e05a7d079607cb2905dcb081d398 |
|
BLAKE2b-256 | f7c13d78a7d7f4cad057b2346d5b488c43be4067f2c5191b67d0a58f1a9b8561 |
Close
Hashes for pygorpho-0.7.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 591ca49396e32defbfd844d1566f014e016511aa3e0862ba28de6dbebb87e037 |
|
MD5 | d3ecb2ba920b22012d7a2b33b70be87c |
|
BLAKE2b-256 | 2d03fafb0c6f1ca850ae96d0bc63cdb8c2e15a886b38ab508d0199cefe67d3d4 |
Close
Hashes for pygorpho-0.7.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a60d728abbb682d275b0480d1979e14abb0793002840a3a7743b424e72561b28 |
|
MD5 | 61b4c7e5a3092edb6739a43e99055ffa |
|
BLAKE2b-256 | b92a3343ca7fc6600bde0302ee916e8755fc65ff2c1860256e686d8727607ea1 |
Close
Hashes for pygorpho-0.7.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2e44ce1c19c66209ac80439953ec91c3c70c09a85545b13e36c84e9805e500 |
|
MD5 | 3e01092de8fbff03da0f3ffbc93cda30 |
|
BLAKE2b-256 | 180508c4f174e6a8c1addc7b51b8f914a66a528e6d5a3410c2ba44c1a87e7d90 |
Close
Hashes for pygorpho-0.7.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2fcde165fb078e4bcf919a7f441c30bc40810dca8ae6efdc225e1fb45c67c6 |
|
MD5 | 8159b30c5924e3603e6634d271a3af6f |
|
BLAKE2b-256 | 12fa96bb72d841d606ce682d1f9765bf6b48629cbe2ef8bd556f413188b896db |
Close
Hashes for pygorpho-0.7.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f4eb089cdb87ecb5102e8caf7a3554de290e2fbd7ab431f770d0def5e1ec26 |
|
MD5 | cc083c5025b75e1ce6af2d3c598b14d7 |
|
BLAKE2b-256 | 6dab1e29a0d5f27b357dbd002177281c1e7bb735bf2fa47b26dfbab2391b56f4 |