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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygorpho-1.0.1.zip.
File metadata
- Download URL: pygorpho-1.0.1.zip
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29d93e75c1c9deb52ba235d05cda2db84911726dcec0f7461b205fc78cf94edf
|
|
| MD5 |
cdef97e870fe882c69c33545fefbb90e
|
|
| BLAKE2b-256 |
74f6d394a0dfcb0c6d9943257fe3dd03f43c700d56e70ff49ccb10c4462c1915
|
File details
Details for the file pygorpho-1.0.1-py3-none-win_amd64.whl.
File metadata
- Download URL: pygorpho-1.0.1-py3-none-win_amd64.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbea932c6f61a1e671357ffec788f1e751066207d8ebc5cd92eef60f393feb98
|
|
| MD5 |
8158788c670ad1cc23d8111bf0ffc750
|
|
| BLAKE2b-256 |
bc2fa5cae98033a78bdb85cfea0e00d8e7ae77ed649443551f403d7c18291b80
|
File details
Details for the file pygorpho-1.0.1-py3-none-manylinux1_x86_64.whl.
File metadata
- Download URL: pygorpho-1.0.1-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b7581003ae5cc1e6b8a7d200fe2c963be2ba78160f4c8e529dc6fa15ca89bc3
|
|
| MD5 |
a751fafbc856a1fd7669221838eb2f45
|
|
| BLAKE2b-256 |
45da944daee64976b69c4d38f0af19b1a7c564a9799fab24c8624e99c700549a
|