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

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.4.1
File Size Uploaded Provenance Actions
pygorpho-0.4.1.tar.gz 8.6 kB Without provenance Details for pygorpho-0.4.1.tar.gz

Built distributions (wheels)

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

Total release size: 8.0 MB

Release files / pygorpho-0.4.1.tar.gz

Download URL pygorpho-0.4.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b511fc76692e320691e55aaf4ff90e6163b5c0d3b7082cade493ff7a12a26b79
BLAKE2b-256 checksum
How to use checksums
e8b2a857e06bc86d34d98bdcaf6d6c5546087ec824ac7bbd0b652926e16523e3
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.1-cp38-cp38-win_amd64.whl

Download URL pygorpho-0.4.1-cp38-cp38-win_amd64.whl
Size 1.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
df77013c29fef188d5aecabf1e15ef1af18fcf72d46d21ae2b5dc63d8efadf64
BLAKE2b-256 checksum
How to use checksums
0cf66dc594c51389ae28ef32132b55d37a234b02c2b208de05ca96cf3c6f97a6
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.1-cp38-cp38-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.1-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
c483cfcccabe5518ab647006c4d6e723d2326e00c0d3b35761d04d5cb6a513f4
BLAKE2b-256 checksum
How to use checksums
7fdc5f2da7cb6275976d1d76e3f81fcf42f082901f0757a90b21507ae0d03af9
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.4.1-cp37-cp37m-win_amd64.whl

Download URL pygorpho-0.4.1-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
546069d3500a305f93bb2346398a0a6b99dc82dff957bc0dc436ecc1d31b6c3b
BLAKE2b-256 checksum
How to use checksums
860e0b39f4c74c5efe2fd397f32b168df5464640ab4c723bae0e4cde7d7c4920
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.1-cp37-cp37m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.1-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
c18bf50c951cfed8cae71e1d28bfd926310d82bb3030f32cc3f6cb71da986e1b
BLAKE2b-256 checksum
How to use checksums
a7b2b2b0bfbe889cb6601f09c5827f736993346ecf30ee2d9318ce1fff6576e6
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.4.1-cp36-cp36m-win_amd64.whl

Download URL pygorpho-0.4.1-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
b8c8474e7cc8fec572a7afdf7291c4597c35696d42c92484dda59f332009dcb3
BLAKE2b-256 checksum
How to use checksums
27f04659f9512736a145218157424f90f512a0a0d9f0909cc81d9a65c4b01536
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.1-cp36-cp36m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.1-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
192a3d5803daf77ad177bee3bb4be7646a61e27196d3b09dac6dc493ad234a10
BLAKE2b-256 checksum
How to use checksums
8885fc7871b77dbe9e4cc3841834efa0a40ffb4a58c48985d286f42aa158b571
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.4.1-cp35-cp35m-win_amd64.whl

Download URL pygorpho-0.4.1-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
1a9420002cd85f82121ec2b33745845b727690866619d11369bbc330f3735dc5
BLAKE2b-256 checksum
How to use checksums
22ab2141a8b1a98cec8535c31dd3e29a78a7310da6f2cc502617c496812d15df
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.1-cp35-cp35m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.1-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
4a1a997d3ce54c74c97b9672b62544ccec1002c1676a2d91dc091c62d64577de
BLAKE2b-256 checksum
How to use checksums
d5de7d142d9b105ea56a776d89deefb8cb2fa982a18848feb58bf385a1b0f690
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.4.1

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