Namespace of morphological watershed routines. More...
Namespaces | |
namespace | impl |
namespace | internal |
namespace | watershed |
Namespace of morphological watershed routines implementations. | |
Functions | |
template<typename L , typename I , typename N > | |
mln::trait::ch_value< I, L >::ret | flooding (const Image< I > &input, const Neighborhood< N > &nbh, L &n_basins) |
Meyer's Watershed Transform (WST) algorithm. | |
template<typename L , typename I , typename N > | |
mln::trait::ch_value< I, L >::ret | flooding (const Image< I > &input, const Neighborhood< N > &nbh) |
Meyer's Watershed Transform (WST) algorithm, with no count of basins. | |
template<typename I , typename J > | |
mln::trait::ch_value< I, value::rgb8 >::ret | superpose (const Image< I > &input_, const Image< J > &ws_ima_, const value::rgb8 &wsl_color) |
Convert an image to a rgb8 image and draw the watershed lines. | |
template<typename I , typename J > | |
mln::trait::ch_value< I, value::rgb8 >::ret | superpose (const Image< I > &input, const Image< J > &ws_ima) |
Convert an image to a rgb8 image and draw the watershed lines. |
Namespace of morphological watershed routines.
mln::trait::ch_value< I, L >::ret mln::morpho::watershed::flooding | ( | const Image< I > & | input, | |
const Neighborhood< N > & | nbh, | |||
L & | n_basins | |||
) | [inline] |
Meyer's Watershed Transform (WST) algorithm.
[in] | input | The input image. |
[in] | nbh | The connexity of markers. |
[out] | n_basins | The number of basins. |
L
is the type of labels, used to number the watershed itself (with the minimal value), and the basins. I
is the exact type of the input image. N
is the exact type of the neighborhood used to express input's connexity. References mln::trace::entering(), mln::trace::exiting(), and mln::morpho::watershed::internal::flooding_dispatch().
Referenced by mln::morpho::watershed::internal::flooding_dispatch().
mln::trait::ch_value< I, L >::ret mln::morpho::watershed::flooding | ( | const Image< I > & | input, | |
const Neighborhood< N > & | nbh | |||
) |
Meyer's Watershed Transform (WST) algorithm, with no count of basins.
[in] | input | The input image. |
[in] | nbh | The connexity of markers. |
L
is the type of labels, used to number the watershed itself (with the minimal value), and the basins. I
is the exact type of the input image. N
is the exact type of the neighborhood used to express input's connexity.Note that the first parameter, L
, is not automatically valued from the type of the actual argument during implicit instantiation: you have to explicitly pass this parameter at call sites.
mln::trait::ch_value< I, value::rgb8 >::ret mln::morpho::watershed::superpose | ( | const Image< I > & | input_, | |
const Image< J > & | ws_ima_, | |||
const value::rgb8 & | wsl_color | |||
) | [inline] |
Convert an image to a rgb8 image and draw the watershed lines.
References mln::data::convert(), mln::pw::cst(), mln::trace::entering(), mln::exact(), mln::trace::exiting(), mln::data::fill(), mln::pw::value(), and mln::literal::zero.
Referenced by superpose().
mln::trait::ch_value< I, value::rgb8 >::ret mln::morpho::watershed::superpose | ( | const Image< I > & | input, | |
const Image< J > & | ws_ima | |||
) | [inline] |
Convert an image to a rgb8 image and draw the watershed lines.
References mln::literal::red, and superpose().