|
mmcfilters
Public API documentation
|
mmcfilters is an alpha research library for constructing and editing morphological hierarchies, computing node attributes, and applying connected filters and hierarchy operators. It provides a C++20 core and Python bindings.
The library represents hierarchies through a rooted connected-subset tree model. A morphological tree of partial partitions is the stricter case in which every node has a non-empty proper part. All supported image-domain trees use the same topology model, with an explicit smallest-node map and optional regular-grid geometry and adjacency.
Use mmcfilters for experiments that require mutable tree topology, direct ownership of hierarchy state, incremental attributes, residual hierarchies, or the filtering operators implemented by this project. For stable, general-purpose hierarchical image processing, Higra will often be the better choice.
np.uint8 Python API.Install the Python package from PyPI:
Install from a source checkout:
For a C++-only build and installation:
The installed C++ package exports the mmcfilters::core target:
| Goal | Guide |
|---|---|
| Understand the tree model and construct hierarchies | Morphological trees |
| Use the Python interface | Python API |
| Compute attributes | Attributes |
| Apply filtering and hierarchy operators | Filters |
| Edit a tree safely | Editing API |
| Extract pixel contours or geometric traces | Pixel contours and contour traces |
| Import from or export to Higra | Higra interoperability |
mmcfilters is distributed under the GNU General Public License v3.0.