Region Adjacency Graph
Include <mln/labeling/rag.hpp>
-
template<typename Label = int16_t, Image I>
image_ch_value_t<I, Label> rag(I input, Neighborhood nbh, Graph &graph, int &nlabel) Compute the influence zones of the maxima of a binary image and its Region Adjacency Graph (RAG).
- Template Parameters:
Label – The integral numeric type for the labels
- Parameters:
input – Input image
nbh – Neighborhood
graph – The RAG to be computed.
nlabel – The number of labels in the image
- Returns:
An image of labels of the IZ of each maxima (label 0 is the background label)
- Exception:
std::runtime_error
if the number of labels overflows
Notes
Complexity
Linear.