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-1.0.0.tar.gz
(9.5 kB
view hashes)
Built Distributions
Close
Hashes for pygorpho-1.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68fbb401ca2d2f23d8cc90cfb1d2216b33893647619b21ed9cb1a2f5102dea52 |
|
MD5 | 83662e02a682b1698d8b58d5341f049b |
|
BLAKE2b-256 | fa2c3b2f55f86c151b9efd910ab2727465955db7d208b6fbda2925c1e8212276 |
Close
Hashes for pygorpho-1.0.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e73808595f24908fd5074d952591db138d0e6b6c008e05711823a4739a3856c |
|
MD5 | e8445c183b940a6e8c9ed33aa251543c |
|
BLAKE2b-256 | ffe3d77712f02574baefc4c72c1339444f8f0db7f1780c6e571aa28fc1dfc8d7 |
Close
Hashes for pygorpho-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd392764eab50c04ed1d30d0f904a794d7d99bd61beae22bc55cb715f6e72b3 |
|
MD5 | 79e721245d2017cb8fc3bb0b73960fe0 |
|
BLAKE2b-256 | ef87a9ba02352b2bf5afeed010827aeda867215ce8eb98a1e3270a6d1a4549fa |
Close
Hashes for pygorpho-1.0.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f31ea4298e2e33125b5963743b8f8c2039c4161d85906c20ff35c7f85d73f56a |
|
MD5 | 3ffb3d359ef885cde93cc4042e4276fb |
|
BLAKE2b-256 | ee5aefc425902ee25d0d75012d7ab50aeffcfaa022471891f722bd79157f122d |
Close
Hashes for pygorpho-1.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80aa9200f42202dc6d6f768d2c641d90049ca157fae236a6ae72e92afc23096 |
|
MD5 | 6cb0a4676459fe6d93928020495979df |
|
BLAKE2b-256 | df3cfff5705a3e77d65403e2b8ba2b141a96ef48ff18fe5048d1f5d06c64a517 |
Close
Hashes for pygorpho-1.0.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6004be1c8e4655acffe9b507eda0570e67162aceff3bb049529f291a33371241 |
|
MD5 | ce9d10487beb03f06cda13d23c6f64f3 |
|
BLAKE2b-256 | e9d5387dedfaacf7860ed89d492ce790c1d46022e03a6dcafa469e8303edccee |
Close
Hashes for pygorpho-1.0.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a16c853604fdcf179f3b3a9e08b9330de24b7ae63994b0cf37d050841e7ca51 |
|
MD5 | 906e08640d1358b36a3cddea3999bb9b |
|
BLAKE2b-256 | 67d5d280cf26385ff8dd03f6781771305054c32c99ebe6f9a50955ec42816620 |
Close
Hashes for pygorpho-1.0.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f5b2402c80ef96e1ce897baf18f3ec61e68e5f3be7c7f23b457a09b05b25d9 |
|
MD5 | 96d8fb98bf8ac6fe6b5d5af8ce847a8d |
|
BLAKE2b-256 | e292ef18ce844402bb367fed1141edc219ef8858f081f8fdf1624068d00ddece |