Python notebooks

The following python notebooks contain examples demonstrating Higra usage. Data can be points, images, or meshes, or anything that can be transformed into a graph.

Component trees

These examples deal with upper and lower treshold set of vertex-weighted graphs.

Connected image filtering with component trees

👁

💾

co3

Filtering with non-increasing criterion - The shaping framework

👁

💾

co9

Pattern spectra - granulometry based on connected filters

👁

💾

co15

Hierarchical segmentation

These examples deal with images, weights are on edges of the associated graph.

Visualizing hierarchical image segmentation

👁

💾

co13

Watershed hierarchies

👁

💾

co2

Hierarchy filtering

👁

💾

co1

Computing a saliency map with the shaping framework

👁

💾

co8

Multiscale Hierarchy Alignment and Combination

👁

💾

co4

Triangular meshes

We provide two examples.

  1. The first one uses trimesh, a simple, pure-python. It can be slow, and not-memory efficient.

  2. The second one uses igl, an efficient C++ geometry processing library, with python bindings.

Hierarchical mesh segmentation – trimesh

👁

💾

co16

Hierarchical mesh segmentation – igl

👁

💾

co17

Useful tools

Region Adjacency Graph

👁

💾

co5

Interactive object segmentation

👁

💾

co6

Contour Simplification

👁

💾

co7

Illustrative applications from scientific papers

Points and Images - Illustrations of SoftwareX 2019 article

👁

💾

co10

Non-relevant node removal, on both point and images. PRL 2019

👁

💾

co11

Fuzzy-marker-based interactive object segmentation - DGMM 2021

👁

💾

co14

Astronomical object detection with the Max-Tree - MMTA 2016

👁

💾

co12