Useful links: Binary Installers | Source Repository | Online Documentation |
Description
This module enables efficient morphological erosion and dilatation. It uses the kernel subdivision algorithm implemented in C, with multithreading.
Features
Works for any tensor dimension, 2d for images, 3d for videos…
The morphological structuring element decomposition logarithmically reduces temporal complexity.
Functions can be parallelized to take advantage of all the CPU threads, in exchange of higher edge effects.
Functions can be compiled dynamically in C to reduce side-effects and overhead, in exchange for a longer loading time.
Examples
import morphomath, cv2
path = morphomath.utils.get_project_root() / "media" / "image.png"
img = cv2.imread(path, cv2.IMREAD_GRAYSCALE)
dilate = morphomath.Dilatation([[0, 1, 0], [0, 1, 0], [1, 1, 1]]).decomposed()
print(dilate)
cv2.imwrite("result.png", dilate(img))
Before
After
Metadata
Release files for morphomath 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| morphomath-0.0.2.tar.gz | 64.9 kB | Without provenance | Details for morphomath-0.0.2.tar.gz |
Release files / morphomath-0.0.2.tar.gz
| Download URL | morphomath-0.0.2.tar.gz |
|---|---|
| Size | 64.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92bd52c73fea375d044ea30149fdd024aa5ba5226afa55973a2e91e3a354030c
|
|
BLAKE2b-256 checksum How to use checksums |
03a3e0895cb7671e0e2e90dc381828130f0fb5521adf4607494bb1540180acf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for morphomath 0.0.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.