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 -i https://test.pypi.org/simple/ 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.2

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.2
File Size Uploaded Provenance Actions
pygorpho-0.2.2.tar.gz 7.8 kB Without provenance Details for pygorpho-0.2.2.tar.gz

Built distributions (wheels)

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

Total release size: 3.0 MB

Release files / pygorpho-0.2.2.tar.gz

Download URL pygorpho-0.2.2.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3b0f1bedd17971ffce8298142346170128b962c42a5fe23452104523a057689c
BLAKE2b-256 checksum
How to use checksums
0bc7c26f3dc3bc2a5b33b8ed8c18b0f2f86d2884e264c9a07adb1f4433916fb7
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.2-cp37-cp37m-win_amd64.whl

Download URL pygorpho-0.2.2-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
13e554d26a13b9c69c69a1111ab50e6b4793a81ac3e2c20cd2883efc751840f7
BLAKE2b-256 checksum
How to use checksums
600327b253060267ab8560995b41e832d934dbfa0f3790a9764d6dec65211c6f
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.2-cp36-cp36m-win_amd64.whl

Download URL pygorpho-0.2.2-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
e2850ca99038ff0207a34e4a24b1ee9c1f190f6a60bba2e6b07c8d72dda2d1cf
BLAKE2b-256 checksum
How to use checksums
2147a80eeaeb421e4018c4a14b7684821536098e847d66eb34ee9c604051e697
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.2-cp35-cp35m-win_amd64.whl

Download URL pygorpho-0.2.2-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
549d768163dd5986bb6fb2dfc408d81a704ec3c0711c60b8903a0932455ec18e
BLAKE2b-256 checksum
How to use checksums
e412e3c82c06e6c386107c516141a597852a64890dd98c4fabed9308a40baf5e
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.2

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