27 #ifndef SCRIBO_DEBUG_BBOXES_ENLARGED_IMAGE_HH
28 # define SCRIBO_DEBUG_BBOXES_ENLARGED_IMAGE_HH
35 # include <mln/core/concept/image.hh>
36 # include <mln/data/convert.hh>
37 # include <mln/value/rgb8.hh>
38 # include <mln/literal/colors.hh>
39 # include <mln/draw/box.hh>
41 # include <scribo/core/line_set.hh>
43 # include <scribo/text/look_like_text_lines.hh>
77 template <
typename I,
typename L>
80 const line_set<L>& lines,
81 const
value::rgb8& text_value,
82 const
value::rgb8& non_text_value);
90 template <typename I, typename L>
91 mln_ch_value(I,
value::rgb8)
93 const line_set<L>& lines);
96 # ifndef MLN_INCLUDE_ONLY
99 template <
typename I,
typename L>
102 const line_set<L>& lines,
103 const
value::rgb8& text_value,
104 const
value::rgb8& non_text_value)
106 mln_trace(
"scribo::debug::bboxes_enlarged_image");
107 mln_precondition(
exact(input).is_valid());
111 for_all_lines(l, lines)
112 if (! lines(l).is_hidden())
114 if (text::internal::looks_like_a_text_line(lines(l)))
124 template <
typename I,
typename L>
127 const line_set<L>& lines)
130 literal::green, literal::red);
133 # endif // ! MLN_INCLUDE_ONLY
140 #endif // ! SCRIBO_DEBUG_BBOXES_ENLARGED_IMAGE_HH