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 https://pygorpho.readthedocs.io

Installation

First, make sure you have CUDA Toolkit 9.2 or later installed. 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.5.0

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.5.0
File Size Uploaded Provenance Actions
pygorpho-0.5.0.tar.gz 3.7 kB Without provenance Details for pygorpho-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pygorpho 0.5.0
File Actions
pygorpho-0.5.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for pygorpho-0.5.0-cp38-cp38-win_amd64.whl
pygorpho-0.5.0-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for pygorpho-0.5.0-cp38-cp38-manylinux2010_x86_64.whl
pygorpho-0.5.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for pygorpho-0.5.0-cp37-cp37m-win_amd64.whl
pygorpho-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for pygorpho-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl
pygorpho-0.5.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for pygorpho-0.5.0-cp36-cp36m-win_amd64.whl
pygorpho-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details for pygorpho-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl
pygorpho-0.5.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for pygorpho-0.5.0-cp35-cp35m-win_amd64.whl
pygorpho-0.5.0-cp35-cp35m-manylinux2010_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64 Details for pygorpho-0.5.0-cp35-cp35m-manylinux2010_x86_64.whl

Total release size: 8.0 MB

Release files / pygorpho-0.5.0.tar.gz

Download URL pygorpho-0.5.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
38c7c91c88bb212d2f9246a9a62defa3abf5b6f59d84f489fe7568fab34e7ef8
BLAKE2b-256 checksum
How to use checksums
67fb790f964cd3573506413d59476691c4cb489e0a26d4cd085eb321fbc191a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

Release files / pygorpho-0.5.0-cp38-cp38-win_amd64.whl

Download URL pygorpho-0.5.0-cp38-cp38-win_amd64.whl
Size 1.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
afbb7ba163eff99f3336b34f5d5797b7bcbec2023f3350529544102699e19327
BLAKE2b-256 checksum
How to use checksums
093a70718267946cf2f56e6d10a4a88ef2da6aa21638ce33752898d98699492c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

Release files / pygorpho-0.5.0-cp38-cp38-manylinux2010_x86_64.whl

Download URL pygorpho-0.5.0-cp38-cp38-manylinux2010_x86_64.whl
Size 992.5 kB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
5b139cf02ab2c676b867b3afd6d9e4c7105a35a9d6b86b589e1e15a1bfe11a66
BLAKE2b-256 checksum
How to use checksums
9a004d3359076e3d1c558f7d985ef9a4481887a72eef4926e2c27d7c734f90a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

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

Download URL pygorpho-0.5.0-cp37-cp37m-win_amd64.whl
Size 1.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
627dec7b35da33178fe84e5b26cadfd30f063768aeba74f489b34a8dbcdcd104
BLAKE2b-256 checksum
How to use checksums
fc86c874a6255f802192daae7f20df73f868c304b8d95b657a892f5733f5f818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

Release files / pygorpho-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl

Download URL pygorpho-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl
Size 992.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
35b09babd30ed3debcfb04464dc9db590be73e05d7116c1cb49b2c0e48ba85c1
BLAKE2b-256 checksum
How to use checksums
3caec17ba7c2e98b3f6f1e1a7c58f460f022c2d1ee2b307c042eb397d89a80bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

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

Download URL pygorpho-0.5.0-cp36-cp36m-win_amd64.whl
Size 1.0 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
ea7df46680757f95319ab38362b7fe5285bacf1cfadf0167a04d2160dae1fcf1
BLAKE2b-256 checksum
How to use checksums
d0f9b046866a7ef4f01e5e1a21dc55e333e689d47a4ce9ed2ecd520a9b543bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

Release files / pygorpho-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl

Download URL pygorpho-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl
Size 992.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
62c8f814471e62afa6ada7fc0b84aa86d70cb9196549a6809d515be14d693d92
BLAKE2b-256 checksum
How to use checksums
f9d4e04476a8cb6886b0876a7be9bffe237433f8c508dbdb5bbbd19dda6d87c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

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

Download URL pygorpho-0.5.0-cp35-cp35m-win_amd64.whl
Size 1.0 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
ac32b6187f0b84b18d295db9f8d54f22e5b1f0dc0c6231c4948cf013351b667a
BLAKE2b-256 checksum
How to use checksums
98e2c0110c17ff6eee7733a8324ce3fa0a9ab209d2e9d32dabb9cb563592e3ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

Release files / pygorpho-0.5.0-cp35-cp35m-manylinux2010_x86_64.whl

Download URL pygorpho-0.5.0-cp35-cp35m-manylinux2010_x86_64.whl
Size 992.4 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
8679348bb52e2b60c79571d23141deb0dc33a4cddaf78203dcdec2027db5700d
BLAKE2b-256 checksum
How to use checksums
aa3b8de81e2599109344a8a01fc009d4ad5f90c626c4a429a852be269e1446fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

Security for pygorpho 0.5.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