26 #ifndef MLN_MORPHO_WATERSHED_SUPERPOSE_HH
27 # define MLN_MORPHO_WATERSHED_SUPERPOSE_HH
33 # include <mln/core/concept/image.hh>
34 # include <mln/core/image/dmorph/image_if.hh>
35 # include <mln/data/convert.hh>
36 # include <mln/data/fill.hh>
37 # include <mln/value/rgb8.hh>
38 # include <mln/literal/colors.hh>
39 # include <mln/pw/all.hh>
58 template <
typename I,
typename J>
62 const Image<J>& ws_ima_,
63 const value::rgb8& wsl_color);
73 template <typename I, typename J>
75 mln_ch_value(I,value::rgb8)
77 const Image<J>& ws_ima);
80 # ifndef MLN_INCLUDE_ONLY
82 template <
typename I,
typename J>
86 const
Image<J>& ws_ima_,
87 const value::
rgb8& wsl_color)
89 trace::entering(
"morpho::watershed::superpose");
91 const I& input = exact(input_);
92 const J& ws_ima = exact(ws_ima_);
93 mln_precondition(input.is_valid());
94 mln_precondition(ws_ima.is_valid());
101 trace::exiting(
"morpho::watershed::superpose");
106 template <
typename I,
typename J>
110 const
Image<J>& ws_ima)
115 # endif // ! MLN_INCLUDE_ONLY
124 #endif // ! MLN_MORPHO_WATERSHED_SUPERPOSE_HH