26 #ifndef SCRIBO_TABLE_INTERNAL_CONNECT_LINES_HH
27 # define SCRIBO_TABLE_INTERNAL_CONNECT_LINES_HH
33 # include <mln/core/image/image1d.hh>
34 # include <mln/core/alias/neighb1d.hh>
36 # include <mln/data/fill.hh>
38 # include <mln/transform/influence_zone_geodesic_saturated.hh>
40 # include <mln/morpho/elementary/dilation.hh>
41 # include <mln/util/array.hh>
42 # include <mln/util/couple.hh>
44 # include <mln/opt/at.hh>
46 # include <scribo/core/macros.hh>
47 # include <scribo/core/central_sites.hh>
75 unsigned max_distance);
78 # ifndef MLN_INCLUDE_ONLY
87 unsigned max_distance)
89 mln_trace(
"scribo::table::internal::connect_lines");
94 for_all_elements(i, aligned_lines)
95 opt::at(l, aligned_lines[i]) = aligned_lines[i];
100 for_all_comps(i, boxes)
103 if (opt::at(l, cp.
first()[dim]) != -1
104 && opt::at(l, cp.
first()[dim]) < boxes[i].pmin()[dim])
105 boxes[i].pmin()[dim] = opt::at(l, cp.
first()[dim]);
106 if (opt::at(l, cp.
second()[dim]) != -1
107 && opt::at(l, cp.
second()[dim]) > boxes[i].pmax()[dim])
108 boxes[i].pmax()[dim] = opt::at(l, cp.
second()[dim]);
114 # endif // ! MLN_INCLUDE_ONLY
124 #endif // ! SCRIBO_TABLE_INTERNAL_CONNECT_LINES_HH