27 #ifndef SCRIBO_DEBUG_ALIGNMENT_DECISION_IMAGE_HH
28 # define SCRIBO_DEBUG_ALIGNMENT_DECISION_IMAGE_HH
34 # include <mln/core/concept/image.hh>
35 # include <mln/data/convert.hh>
36 # include <mln/value/rgb8.hh>
37 # include <mln/literal/colors.hh>
38 # include <mln/util/array.hh>
39 # include <mln/util/couple.hh>
41 # include <scribo/core/component_set.hh>
42 # include <scribo/core/object_groups.hh>
43 # include <scribo/draw/bounding_boxes.hh>
45 # include <scribo/primitive/link/internal/compute_anchor.hh>
70 template <
typename I,
typename L>
75 const anchor::Type& anchor);
78 # ifndef MLN_INCLUDE_ONLY
80 template <
typename I,
typename L>
85 const anchor::Type& anchor)
87 mln_trace(
"scribo::debug::alignment_decision_image");
88 const I& input =
exact(input_);
92 mln_precondition(input.is_valid());
94 mln_precondition(filtered_links.
is_valid());
100 for_all_comps(i, components)
103 typedef mln_site(L) P;
105 for_all_links(i, links)
110 anchor_i = primitive::link::internal::compute_anchor(components,
112 anchor_li = primitive::link::internal::compute_anchor(components,
116 if (links(i) != filtered_links(i))
117 value = literal::red;
125 # endif // ! MLN_INCLUDE_ONLY
132 #endif // ! SCRIBO_DEBUG_ALIGNMENT_DECISION_IMAGE_HH