27 #ifndef SCRIBO_PRIMITIVE_LINK_WITH_GRAPH_HH
28 # define SCRIBO_PRIMITIVE_LINK_WITH_GRAPH_HH
34 # include <mln/core/concept/image.hh>
36 # include <mln/math/abs.hh>
38 # include <mln/labeling/compute.hh>
40 # include <mln/accu/center.hh>
42 # include <mln/util/array.hh>
43 # include <mln/util/graph.hh>
45 # include <scribo/core/macros.hh>
46 # include <scribo/core/component_set.hh>
47 # include <scribo/primitive/internal/find_graph_link.hh>
76 unsigned neighb_max_distance);
79 # ifndef MLN_INCLUDE_ONLY
85 unsigned neighb_max_distance)
87 mln_trace(
"scribo::primitive::link::with_graph");
91 for_all_comps(i, comps)
93 unsigned midcol = (comps(i).bbox().pmax().col()
94 - comps(i).bbox().pmin().col()) / 2;
95 int dmax = midcol + neighb_max_distance;
103 comps(i).mass_center());
110 # endif // ! MLN_INCLUDE_ONLY
120 #endif // ! SCRIBO_PRIMITIVE_LINK_WITH_GRAPH_HH