Skip to main content

# 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:

  1. Clone the repo: git clone https://github.com/patmjen/pygorpho.git

  2. Change directory: cd pygorpho

  3. Install the required Python packages: pip install numpy scikit-build cmake ninja

  4. 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.

Metadata

Release files for pygorpho 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pygorpho 0.2.0
File Interpreter ABI Platform Actions
pygorpho-0.2.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for pygorpho-0.2.0-cp37-cp37m-win_amd64.whl
pygorpho-0.2.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for pygorpho-0.2.0-cp36-cp36m-win_amd64.whl
pygorpho-0.2.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for pygorpho-0.2.0-cp35-cp35m-win_amd64.whl

Total release size: 3.0 MB

Release files / pygorpho-0.2.0-cp37-cp37m-win_amd64.whl

Download URL pygorpho-0.2.0-cp37-cp37m-win_amd64.whl
Size 995.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
a27ba522ee24edcca32d6940e98085b63c7e9561a6e301ddcc864b8183744b16
BLAKE2b-256 checksum
How to use checksums
eadc583856b975e17ca17955574546730face17ca4c9de13829baf8c8917ebbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release files / pygorpho-0.2.0-cp36-cp36m-win_amd64.whl

Download URL pygorpho-0.2.0-cp36-cp36m-win_amd64.whl
Size 995.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
e1ffc928c12e3e4ef864b5f96496306617ce8766191d881a8e3b35105e5553e5
BLAKE2b-256 checksum
How to use checksums
c739bf9e4f8131968f037ce6f9cdb6d52afef3f6bece32a26fe1039a25f2921f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release files / pygorpho-0.2.0-cp35-cp35m-win_amd64.whl

Download URL pygorpho-0.2.0-cp35-cp35m-win_amd64.whl
Size 999.7 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
7c61a03d4f745a12f5437c5638d38fd36b5da978e5a3c5ec9ef314f539edf032
BLAKE2b-256 checksum
How to use checksums
01efe0151b32d87ed1b21382c5b42fd6343f4181976ab9affd0e843dedaee7e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Security for pygorpho 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page