27 #ifndef SCRIBO_DRAW_GROUPS_BBOXES_HH
28 # define SCRIBO_DRAW_GROUPS_BBOXES_HH
34 # include <mln/core/concept/image.hh>
35 # include <mln/draw/box.hh>
37 # include <scribo/core/macros.hh>
38 # include <scribo/core/object_groups.hh>
39 # include <scribo/primitive/group/apply.hh>
50 template <
typename I,
typename L>
54 const object_groups<L>& groups,
55 const mln_value(I)&
value);
59 # ifndef MLN_INCLUDE_ONLY
63 template <
typename I,
typename L>
67 const object_groups<L>& groups,
68 const mln_value(I)&
value)
70 mln_trace(
"scribo::draw::groups_bboxes");
72 I& input =
exact(input_);
74 mln_precondition(input.is_valid());
76 for_all_groups(g, groups)
77 if (groups(g).is_valid())
78 mln::draw::
box(input, groups(g).
bbox(), value);
83 # endif // ! MLN_INCLUDE_ONLY
90 #endif // ! SCRIBO_DRAW_GROUPS_BBOXES_HH