27 #ifndef SCRIBO_DEBUG_SAVE_COMP_DIFF_HH
28 # define SCRIBO_DEBUG_SAVE_COMP_DIFF_HH
34 # include <mln/core/image/image2d.hh>
35 # include <mln/core/concept/image.hh>
36 # include <mln/data/fill.hh>
37 # include <mln/labeling/colorize.hh>
38 # include <mln/value/rgb8.hh>
39 # include <mln/io/ppm/save.hh>
40 # include <mln/literal/black.hh>
41 # include <mln/literal/colors.hh>
42 # include <mln/pw/all.hh>
43 # include <mln/core/image/dmorph/image_if.hh>
45 # include <scribo/core/macros.hh>
46 # include <scribo/core/component_set.hh>
64 template <
typename L,
typename L2>
67 const component_set<L2>& comps_new,
71 # ifndef MLN_INCLUDE_ONLY
74 template <
typename L,
typename L2>
77 const component_set<L2>& comps_new,
80 mln_trace(
"scribo::debug::save_comp_diff");
87 for_all_comps(i, comps_ref)
92 for_all_comps(i, comps_new)
97 io::ppm::
save(output, filename);
102 # endif // ! MLN_INCLUDE_ONLY
109 #endif // ! SCRIBO_DEBUG_SAVE_COMP_DIFF_HH