27 #ifndef SCRIBO_PRIMITIVE_LINK_WITH_RAG_HH
28 # define SCRIBO_PRIMITIVE_LINK_WITH_RAG_HH
35 # include <mln/core/concept/neighborhood.hh>
37 # include <mln/util/graph.hh>
38 # include <mln/util/couple.hh>
40 # include <mln/transform/influence_zone_geodesic.hh>
42 # include <mln/make/influence_zone_adjacency_graph.hh>
45 # include <scribo/core/macros.hh>
46 # include <scribo/core/component_set.hh>
63 template <
typename L,
typename N>
64 util::couple<mln::util::graph, mln_concrete(L)>
65 with_rag(
const component_set<L>& comps,
69 # ifndef MLN_INCLUDE_ONLY
72 template <
typename L,
typename N>
73 util::couple<mln::util::graph, mln_concrete(L)>
74 with_rag(
const component_set<L>& comps,
77 mln_trace(
"scribo::primitive::link::with_rag");
79 mln_precondition(comps.is_valid());
86 g = mln::make::influence_zone_adjacency_graph(iz,
90 return make::couple(g, iz);
94 # endif // ! MLN_INCLUDE_ONLY
102 #endif // ! SCRIBO_PRIMITIVE_LINK_WITH_RAG_HH