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

Total release size: 7.4 MB

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

Download URL pygorpho-0.4.0-cp38-cp38-win_amd64.whl
Size 858.3 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
2047c65ba1a9794689f0e6c4cd9e58d7c2e43373a55a8bb5575443031e6fef59
BLAKE2b-256 checksum
How to use checksums
f028de7604efd55a0e22fb6bfa8f0be2ff51a8f34bdea28b66a153d362fdc05b
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.4.0-cp38-cp38-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.0-cp38-cp38-manylinux2010_x86_64.whl
Size 986.2 kB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
676213783938b0ab21cfa671c27f5f1989d0694da07565d4f686d01d8dc67f78
BLAKE2b-256 checksum
How to use checksums
e29e65b31176a446263aa0909e2001c02674469cc87b28af1f8521d4ae89130b
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

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

Download URL pygorpho-0.4.0-cp37-cp37m-win_amd64.whl
Size 858.3 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
0b14028d2e77eff924810a0ea696284b3ddc72ec1e462a144a53287ab6765498
BLAKE2b-256 checksum
How to use checksums
e841e5222eb480aa173b0d09bc7abb34e8055bed238ae726a94627c612128af0
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.4.0-cp37-cp37m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.0-cp37-cp37m-manylinux2010_x86_64.whl
Size 986.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
1216dd96dcf8b6bc895cbb01455d5d2bed110f86397b94f62d03536ecaf3484d
BLAKE2b-256 checksum
How to use checksums
776676ab82b7b8133b6d3ee20c48abd51d20bde958cf85f30ecc8d78b16d994b
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

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

Download URL pygorpho-0.4.0-cp36-cp36m-win_amd64.whl
Size 858.3 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d5adc81efbe075d56f141bf3dc2e992ddd0d0e68c59d95e601d222be4aa43fed
BLAKE2b-256 checksum
How to use checksums
a988ca1e5c3dc78e7bd66552f9399e25ef7af919e6c2b32d14a80c4dd5a8fdce
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.4.0-cp36-cp36m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.0-cp36-cp36m-manylinux2010_x86_64.whl
Size 986.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
52d4248042b510980d51d90c50c182553bc9db0d069647cf7c0d321eb61e1519
BLAKE2b-256 checksum
How to use checksums
034a27f7274e8bd5c638bfdf842dc8f4f6ecf32912c925c5646729cef6d1c058
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

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

Download URL pygorpho-0.4.0-cp35-cp35m-win_amd64.whl
Size 857.4 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
276b70a3e1eaa3f97fa377e60853e4b7a5cc71e6a688bcdf3c7ca2d452df4db0
BLAKE2b-256 checksum
How to use checksums
3037f138040de7d9e12fbdf3fd60187295de087e092b37fd8457a70ee5c2003c
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.4.0-cp35-cp35m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.0-cp35-cp35m-manylinux2010_x86_64.whl
Size 986.1 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
3d20c6001b57dfd5bd16f3dedaa6ff62fff61f45461a9366ef08e16b022c90a6
BLAKE2b-256 checksum
How to use checksums
3ebf39f73f95eb2616bf6ea0ca5bc4ff09845648dceb05599d21307e71fb99a3
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.4.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