fast morphology using kernel subdivision
Project description
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
from morphomath.decomposition import full_decomposition
from morphomath.kernel import Kernel
from morphomath.printer import Printer
kernel = Kernel([[0, 1, 0], [0, 1, 0], [1, 1, 1]])
kernels, merge = full_decomposition(kernel)
printer = Printer(kernel, kernels, merge)
print(printer.draw_description())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file morphomath-0.0.dev6.tar.gz.
File metadata
- Download URL: morphomath-0.0.dev6.tar.gz
- Upload date:
- Size: 56.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26b3610ab7971993470ed3b4087d1059185671dcf855718de056633344889fe3
|
|
| MD5 |
e0806bb2aeef03a3de2ab0d37eb837fc
|
|
| BLAKE2b-256 |
b762d12512b4a6d1016db9e4f68cd99512af5eb25705823b20532eb52ba50f94
|