Module visioncortex::color_clusters
source · [−]Expand description
Algorithm to cluster a color image and build a tree of clusters
The hierarchical structure resembles the human visual cortex.
To support interactivity, components follow a state-machine model:
- new(): creation of placeholder object
- init(): resource allocation
- tick() -> bool: computation. returning false to continue, returning true when finish
- result() -> T: cleanup & collect results
Structs
Constants
the 0th cluster is reserved for internal use