$extrastylesheet
Namespaces | |
namespace | attribute |
Functions | |
template<typename G , typename F > | |
F::result | compute (const Graph< G > &g_, F &functor) |
template<typename I , typename N , typename L > | |
mln::trait::ch_value< I, L >::ret | labeling (const Image< I > &graph_image_, const Neighborhood< N > &nbh_, L &nlabels) |
template<typename I , typename M > | |
graph_elt_neighborhood_if < mln_graph(I), typename I::domain_t, M > | to_neighb (const Image< I > &graph_image_, const Image< M > &graph_mask_image_) |
template<typename I , typename M > | |
graph_elt_window_if< mln_graph(I), typename I::domain_t, M > | to_win (const Image< I > &graph_image_, const Image< M > &graph_mask_image_) |
Namespace of graph related routines.
F ::result mln::graph::compute | ( | const Graph< G > & | g_, |
F & | functor | ||
) |
Base routine to compute attributes on a graph.
[in] | g_ | A graph. |
[in] | functor | A functor implementing the right interface. |
mln::trait::ch_value< I , L >::ret mln::graph::labeling | ( | const Image< I > & | graph_image_, |
const Neighborhood< N > & | nbh_, | ||
L & | nlabels | ||
) |
Label graph components.
Vertex with id 0, usuallly used to represent the background component, will be labeled with an id different from 0. Therefore, the labeling starts from 1.
[in] | graph_image_ | A graph image ( |
[in] | nbh_ | A graph neighborhood. |
[in,out] | nlabels | The number of labels found. |
graph_elt_neighborhood_if<mln_graph(I), typename I ::domain_t, M> mln::graph::to_neighb | ( | const Image< I > & | graph_image_, |
const Image< M > & | graph_mask_image_ | ||
) |
Make a custom graph neighborhood from a mask image.
[in] | graph_image_ | A graph image ( |
[in] | graph_mask_image_ | A graph image of bool used as a mask. |
graph_elt_window_if<mln_graph(I), typename I ::domain_t, M> mln::graph::to_win | ( | const Image< I > & | graph_image_, |
const Image< M > & | graph_mask_image_ | ||
) |
Make a custom graph window from a mask image.
[in] | graph_image_ | A graph image ( |
[in] | graph_mask_image_ | A graph image of bool used as a mask. |