Skip to main content

Python bindings for gorpho

Project description

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, run python, and try to import pygorpho as pg.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygorpho-1.0.1.zip (12.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pygorpho-1.0.1-py3-none-win_amd64.whl (1.0 MB view details)

Uploaded Python 3Windows x86-64

pygorpho-1.0.1-py3-none-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file pygorpho-1.0.1.zip.

File metadata

  • Download URL: pygorpho-1.0.1.zip
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pygorpho-1.0.1.zip
Algorithm Hash digest
SHA256 29d93e75c1c9deb52ba235d05cda2db84911726dcec0f7461b205fc78cf94edf
MD5 cdef97e870fe882c69c33545fefbb90e
BLAKE2b-256 74f6d394a0dfcb0c6d9943257fe3dd03f43c700d56e70ff49ccb10c4462c1915

See more details on using hashes here.

File details

Details for the file pygorpho-1.0.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: pygorpho-1.0.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pygorpho-1.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dbea932c6f61a1e671357ffec788f1e751066207d8ebc5cd92eef60f393feb98
MD5 8158788c670ad1cc23d8111bf0ffc750
BLAKE2b-256 bc2fa5cae98033a78bdb85cfea0e00d8e7ae77ed649443551f403d7c18291b80

See more details on using hashes here.

File details

Details for the file pygorpho-1.0.1-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pygorpho-1.0.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0b7581003ae5cc1e6b8a7d200fe2c963be2ba78160f4c8e529dc6fa15ca89bc3
MD5 a751fafbc856a1fd7669221838eb2f45
BLAKE2b-256 45da944daee64976b69c4d38f0af19b1a7c564a9799fab24c8624e99c700549a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page