Python bindings for gorpho
Project description
# pygorpho
Python bindings for [gorpho](https://github.com/patmjen/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 [readthedocs](https://pygorpho.readthedocs.io)
## Installation First, make sure you have [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit) 9.2 or later installed. Also, you must install [NumPy](https://numpy.org/): ` pip install numpy ` Then, install with pip: ` pip install -i https://test.pypi.org/simple/ pygorpho `
## Installing from source Again, make sure you have [CUDA Toolkit](https://developer.nvidia.com/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, navigate to another directory (e.g. cd ..), run python, and try to import pygorpho as pg.
Note: the reason you have to navigate to another directory before importing the package is because the build step makes a shared library. This will be installed with pygorpho, but if you stay in the folder where you cloned the git repo., import pygorpho will import from the local version, and not the installed version.
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 Distributions
Built Distributions
Hashes for pygorpho-0.2.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27ba522ee24edcca32d6940e98085b63c7e9561a6e301ddcc864b8183744b16 |
|
MD5 | ccdf29d08e7ad21e389b8e088a9f3d33 |
|
BLAKE2b-256 | eadc583856b975e17ca17955574546730face17ca4c9de13829baf8c8917ebbf |
Hashes for pygorpho-0.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ffc928c12e3e4ef864b5f96496306617ce8766191d881a8e3b35105e5553e5 |
|
MD5 | 527cc9ca00d34b49502110debb2aca33 |
|
BLAKE2b-256 | c739bf9e4f8131968f037ce6f9cdb6d52afef3f6bece32a26fe1039a25f2921f |
Hashes for pygorpho-0.2.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c61a03d4f745a12f5437c5638d38fd36b5da978e5a3c5ec9ef314f539edf032 |
|
MD5 | 62b6e239178970ebd2b01a12c82a98ae |
|
BLAKE2b-256 | 01efe0151b32d87ed1b21382c5b42fd6343f4181976ab9affd0e843dedaee7e0 |