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

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.3
File Actions
pygorpho-0.2.3-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for pygorpho-0.2.3-cp37-cp37m-win_amd64.whl
pygorpho-0.2.3-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for pygorpho-0.2.3-cp36-cp36m-win_amd64.whl
pygorpho-0.2.3-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for pygorpho-0.2.3-cp35-cp35m-win_amd64.whl
pygorpho-0.2.3-cp35-cp35m-manylinux2010_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64 Details for pygorpho-0.2.3-cp35-cp35m-manylinux2010_x86_64.whl

Total release size: 4.0 MB

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

Download URL pygorpho-0.2.3-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
762b7ce5870038a2ec7c31a1f72f244c27417ae454303c99ea6301f3b6c70eef
BLAKE2b-256 checksum
How to use checksums
827591157aa3fcc19514921ad3028e7a2cc04ac3b6f9999359057255c8366610
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.3-cp36-cp36m-win_amd64.whl

Download URL pygorpho-0.2.3-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
b295f30dce4f5247354d94285d8c3b753722b3434cc3062b4b3cf87f454914a2
BLAKE2b-256 checksum
How to use checksums
d7285d826d2048128212c3456705ae2c6b7d8cb4edc46597abbe92396f1cf7c0
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.3-cp35-cp35m-win_amd64.whl

Download URL pygorpho-0.2.3-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
6b6967b5c088770028617e06a5b485f2cbe778497fc304776dff2decc9b6ea04
BLAKE2b-256 checksum
How to use checksums
9cdd82a39ca64d9d323eeac4ea9e3becc288fe9ed1af1e0a33d55ccd2e82427c
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.3-cp35-cp35m-manylinux2010_x86_64.whl

Download URL pygorpho-0.2.3-cp35-cp35m-manylinux2010_x86_64.whl
Size 1.0 MB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
039c2f6c89f16529ab6b264d719f90e46bf170704ae02e1436def98ea076767e
BLAKE2b-256 checksum
How to use checksums
f7db9a1ddd92e63d0eddf73b491114cd78e4d7944b6eeead1fa80342ebf6b4e6
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/28.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.2

Security for pygorpho 0.2.3

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