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

Built distributions (wheels)

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

Total release size: 8.0 MB

Release files / pygorpho-0.4.2.tar.gz

Download URL pygorpho-0.4.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
042bd9b3bd168b1a9e38cef42f1e27c7207253304907b2adce219f0e27d078a8
BLAKE2b-256 checksum
How to use checksums
96220be504eff8471350c1d0bef5a7946d5c30e7325e11cbdb377674c28b3a8d
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.2-cp38-cp38-win_amd64.whl

Download URL pygorpho-0.4.2-cp38-cp38-win_amd64.whl
Size 1.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
e59e51d02bc83626f9a4aeafa20b416182cbdd9e8fddacfb415d70a00b0cc0cf
BLAKE2b-256 checksum
How to use checksums
f2975a9f37a16319b1f1dd1a1e11c5e27683628236de348065c4e430829862fd
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.2-cp38-cp38-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.2-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
74e140dc27f3c7bfd937f5f58e45e0b0db4ce2bdcfde0ef4fad569a86adbc518
BLAKE2b-256 checksum
How to use checksums
b0f3106234cd00f85eabfad5770beb1169413b79c8027b6446d453b9aab518b1
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.2-cp37-cp37m-win_amd64.whl

Download URL pygorpho-0.4.2-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
e75d9eeda8f7ff65461be23d93d0f1438a6eddc256a9cc4dfe1b0e12ba2aa79c
BLAKE2b-256 checksum
How to use checksums
ae9b6b196e76e1004e8c9f96c70e8d104ee22f924bdc9e75bc56a2f1d9bef7c8
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.2-cp37-cp37m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.2-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
915febfcbd31f9c1a151833120db4ba24670f9674ee0167a017ae28780d99d09
BLAKE2b-256 checksum
How to use checksums
0239dd94acd2dc229a1ead5460f93c7a63ffb5533b18dc8c85689a7fa43a1eef
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.2-cp36-cp36m-win_amd64.whl

Download URL pygorpho-0.4.2-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
db33f2b6788c4c99df8ed816b28c494cdfa9420cc1e52d971614c5c2a3f5d522
BLAKE2b-256 checksum
How to use checksums
ac5719ca5a4f2426212f07e31df99bc501009e3062280a31f90b847ac74a40f1
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.2-cp36-cp36m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.2-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
717d341db210a5248f2e307c474cd255e733c75cccce0cddaa984a510c8e2d27
BLAKE2b-256 checksum
How to use checksums
574754178cfe0fc894d408388d10de436b0dac0a3e830f03c5e348a9f0caafc1
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.2-cp35-cp35m-win_amd64.whl

Download URL pygorpho-0.4.2-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
2c7ab622f6b7b32ef1f8fd63b199f1f1bea290f638180f6bf0b2ea9ff3c6316d
BLAKE2b-256 checksum
How to use checksums
862a40549790140da8836d26b62b3433fc1b4b21494ff736d043bc6de57cb360
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.2-cp35-cp35m-manylinux2010_x86_64.whl

Download URL pygorpho-0.4.2-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
400812799d4900390439930f08f326e156e98ce7c8e583869acef0d5b4c68aae
BLAKE2b-256 checksum
How to use checksums
08c0c8cde9a370c178d6c950c26a13eed776bc58b2e0aefee394d442adacb57f
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.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