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.6.0.tar.gz
(3.5 kB
view hashes)
Built Distributions
Close
Hashes for pygorpho-0.6.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acdcfa322566d3c5c343c8b5da526c9eb51c3deb13ccc5300e84613fda38a6cd |
|
MD5 | c65fd9352de8cb99eafc85ad8deb2712 |
|
BLAKE2b-256 | 891d366aa0f5ac999b81c6b072685ed81ca3dfb545e26964e8803309f4a9d153 |
Close
Hashes for pygorpho-0.6.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbafcd93aed645b1158e109209dd001db76f358ace4a842a1d968f3b8c28b5b |
|
MD5 | 435701b3f1eacd60bd16f20d2a7e7ad4 |
|
BLAKE2b-256 | 422e8c71042f86f562d96c65787941a7d3f1dfcd80a692d70cfacd3af9ad7d21 |
Close
Hashes for pygorpho-0.6.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17e1e1681097d87e75fce59b83f22b8b3b03baf10bba3f2af21f2571d5a8c1e9 |
|
MD5 | 0f46d4b245491c509e63b22606cad154 |
|
BLAKE2b-256 | d71a67823f3f4d2c311af9372cc1874dd319d2e53f60665cfb272933e8b6950f |
Close
Hashes for pygorpho-0.6.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe82ceefe9697e7671e561e521a376d1c206bf1c90cc4b5aac35ac413ff5bf8 |
|
MD5 | 90c8c2f224b8359480b2d0855271ee2a |
|
BLAKE2b-256 | 0a09a40fff5241255db0da554164dbf1cbefc7cec52505cd95d7befe46e3f178 |
Close
Hashes for pygorpho-0.6.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72684896ea1d8237019d9f51490ddbbf9ae0b35a7a3f1bdf75caf2fd2d0a0e1 |
|
MD5 | f7bfacee54afe8a2e353008f80e746ae |
|
BLAKE2b-256 | a3995e617bfeeb9cddd315a5fa57ce9c07b6f88f44562f52f98a486893e60fe0 |
Close
Hashes for pygorpho-0.6.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 363fe9acb2440b73ef98137199a88fc0cab36a448e23153826e92243ed69599d |
|
MD5 | 10f76dde7a2ba147845a3f04fe26c300 |
|
BLAKE2b-256 | 8cced5cb47c4027eb7a97a43ac7c07e0e0109c7931d09b47345b74c079a48c70 |
Close
Hashes for pygorpho-0.6.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e789dde090343cc451b9645ab154f6647e23d0904515f420c5bc6d100b9dd03a |
|
MD5 | 26e551722c5e288b9182260917afdc4a |
|
BLAKE2b-256 | 1f041e8c3ee515ecf28671e49c04a015354c4593eb39569fb87fab2446200d17 |
Close
Hashes for pygorpho-0.6.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5274413cc03012b0f00563d881de9d2436aa38f819cf920c24e93ac58ff7d5e4 |
|
MD5 | f125ef729e08d3a40c85582569fb68ca |
|
BLAKE2b-256 | 7ee6bd03692b2a26d3c7fcd34f3f5751a82d675db707c82b1656a5552a28cdc1 |