26 #ifndef SCRIBO_DEBUG_TEXT_COLOR_IMAGE_HH
27 # define SCRIBO_DEBUG_TEXT_COLOR_IMAGE_HH
33 # include <mln/core/image/image2d.hh>
34 # include <mln/value/rgb8.hh>
35 # include <mln/data/fill.hh>
36 # include <mln/literal/white.hh>
37 # include <mln/util/array.hh>
39 # include <mln/pw/all.hh>
40 # include <mln/core/image/dmorph/image_if.hh>
42 # include <scribo/core/macros.hh>
43 # include <scribo/core/document.hh>
61 # ifndef MLN_INCLUDE_ONLY
71 const paragraph_set<L>& parset = doc.paragraphs();
72 const line_set<L>& lines = doc.lines();
73 const component_set<L>& comp_set = lines.components();
74 const L& lbl = comp_set.labeled_image();
76 for_all_paragraphs(p, parset)
80 for_all_paragraph_lines(lid, line_ids)
82 line_id_t l = line_ids(lid);
85 for_all_elements(e, comps)
87 unsigned comp_id = comps(e);
98 # endif // ! MLN_INCLUDE_ONLY
104 #endif // ! SCRIBO_DEBUG_TEXT_COLOR_IMAGE_HH