Skip to main content

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 readthedocs

Installation

First, make sure you have CUDA Toolkit 9.2 or later installed. Also, you must install NumPy:

pip install numpy

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:

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

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

Source distribution (sdist)

Source distribution for pygorpho 0.2.4
File Size Uploaded Provenance Actions
pygorpho-0.2.4.tar.gz 7.9 kB Without provenance Details for pygorpho-0.2.4.tar.gz

Built distributions (wheels)

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

Total release size: 3.0 MB

Release files / pygorpho-0.2.4.tar.gz

Download URL pygorpho-0.2.4.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d5b2ede15d1159b6b413987a9da8f50c87d57a25653be941603ea9d61ca27fda
BLAKE2b-256 checksum
How to use checksums
dd6cfd3bd985c9105b1c9eca2466dd475ab31772dad1d2e3099a160ff52d318a
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.7.4

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

Download URL pygorpho-0.2.4-cp37-cp37m-win_amd64.whl
Size 995.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
c3d8828c96c8cf835260b179240c348130b0527f798a8f97668bd846fc812dc5
BLAKE2b-256 checksum
How to use checksums
6db5aad7bc72eb443e90a4d90b7ab6788c2eaea4a29197ef7e4f225d342ad376
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.7.4

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

Download URL pygorpho-0.2.4-cp36-cp36m-win_amd64.whl
Size 995.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
a4a2e04ad1ccf36a5563610f701dc7e1922debda1bcd58ab0a52eb78710b7e08
BLAKE2b-256 checksum
How to use checksums
377988b820955cedacd4c5c6f1252147ede97292b70361af00974412446b4c84
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.7.4

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

Download URL pygorpho-0.2.4-cp35-cp35m-win_amd64.whl
Size 999.8 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
f90ba9c80e218fdcd0badbdcd28cba9fcc4b5503744a587f1a179ffb3fad85e5
BLAKE2b-256 checksum
How to use checksums
8554b38ee1ce53c79d2ccaf4503b95b2d8bbfef266bd21561d29c9874e3bf0d0
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.7.4

Security for pygorpho 0.2.4

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