Namespace of mathematical morphology routines. More...
Namespaces | |
namespace | approx |
Namespace of approximate mathematical morphology routines. | |
namespace | attribute |
Namespace of attributes used in mathematical morphology. | |
namespace | elementary |
Namespace of image processing routines of elementary mathematical morphology. | |
namespace | impl |
Namespace of mathematical morphology routines implementations. | |
namespace | reconstruction |
Namespace of morphological reconstruction routines. | |
namespace | tree |
Namespace of morphological tree-related routines. | |
namespace | watershed |
Namespace of morphological watershed routines. | |
Functions | |
template<typename I > | |
mln::trait::concrete< I >::ret | complementation (const Image< I > &input) |
template<typename I > | |
void | complementation_inplace (Image< I > &input) |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | contrast (const Image< I > &input, const Window< W > &win) |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | dilation (const Image< I > &input, const Window< W > &win) |
Morphological dilation. | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | erosion (const Image< I > &input, const Window< W > &win) |
Morphological erosion. | |
template<typename Op , typename I , typename W > | |
mln::trait::concrete< I >::ret | general (const Op &op, const Image< I > &input, const Window< W > &win) |
Morphological general routine. | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | gradient (const Image< I > &input, const Window< W > &win) |
Morphological gradient. | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | gradient_external (const Image< I > &input, const Window< W > &win) |
Morphological external gradient. | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | gradient_internal (const Image< I > &input, const Window< W > &win) |
Morphological internal gradient. | |
template<typename I , typename Wh , typename Wm > | |
mln::trait::concrete< I >::ret | hit_or_miss (const Image< I > &input, const Window< Wh > &win_hit, const Window< Wm > &win_miss) |
Morphological hit-or-miss. | |
template<typename I , typename Wh , typename Wm > | |
mln::trait::concrete< I >::ret | hit_or_miss_background_closing (const Image< I > &input, const Window< Wh > &win_hit, const Window< Wm > &win_miss) |
Morphological hit-or-miss closing of the background. | |
template<typename I , typename Wh , typename Wm > | |
mln::trait::concrete< I >::ret | hit_or_miss_background_opening (const Image< I > &input, const Window< Wh > &win_hit, const Window< Wm > &win_miss) |
Morphological hit-or-miss opening of the background. | |
template<typename I , typename Wh , typename Wm > | |
mln::trait::concrete< I >::ret | hit_or_miss_closing (const Image< I > &input, const Window< Wh > &win_hit, const Window< Wm > &win_miss) |
Morphological hit-or-miss closing. | |
template<typename I , typename Wh , typename Wm > | |
mln::trait::concrete< I >::ret | hit_or_miss_opening (const Image< I > &input, const Window< Wh > &win_hit, const Window< Wm > &win_miss) |
Morphological hit-or-miss opening. | |
template<typename I , typename W , typename O > | |
void | laplacian (const Image< I > &input, const Window< W > &win, Image< O > &output) |
template<typename V > | |
edge_image< util::site_pair < point2d >, V, util::graph > | line_gradient (const mln::image2d< V > &ima) |
Create a line graph image representing the gradient norm of a mln::image2d. | |
template<typename L , typename I , typename N > | |
mln::trait::ch_value< I, L >::ret | meyer_wst (const Image< I > &input, const Neighborhood< N > &nbh, L &nbasins) |
Meyer's Watershed Transform (WST) algorithm. | |
template<typename L , typename I , typename N > | |
mln::trait::ch_value< I, L >::ret | meyer_wst (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::concrete< I >::ret | min (const Image< I > &lhs, const Image< J > &rhs) |
template<typename I , typename J > | |
void | min_inplace (Image< I > &lhs, const Image< J > &rhs) |
template<typename I , typename J > | |
mln::trait::concrete< I >::ret | minus (const Image< I > &lhs, const Image< J > &rhs) |
template<typename I , typename J > | |
mln::trait::concrete< I >::ret | plus (const Image< I > &lhs, const Image< J > &rhs) |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | rank_filter (const Image< I > &input, const Window< W > &win, unsigned k) |
Morphological rank_filter. | |
template<typename I , typename Wfg , typename Wbg > | |
mln::trait::concrete< I >::ret | thick_miss (const Image< I > &input, const Window< Wfg > &win_fg, const Window< Wbg > &win_bg) |
template<typename I , typename Wfg , typename Wbg > | |
mln::trait::concrete< I >::ret | thickening (const Image< I > &input, const Window< Wfg > &win_fg, const Window< Wbg > &win_bg) |
template<typename I , typename Wfg , typename Wbg > | |
mln::trait::concrete< I >::ret | thin_fit (const Image< I > &input, const Window< Wfg > &win_fg, const Window< Wbg > &win_bg) |
template<typename I , typename Wfg , typename Wbg > | |
mln::trait::concrete< I >::ret | thinning (const Image< I > &input, const Window< Wfg > &win_fg, const Window< Wbg > &win_bg) |
Morphological thinning. | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | top_hat_black (const Image< I > &input, const Window< W > &win) |
Morphological black top-hat (for background / dark objects). | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | top_hat_self_complementary (const Image< I > &input, const Window< W > &win) |
Morphological self-complementary top-hat. | |
template<typename I , typename W > | |
mln::trait::concrete< I >::ret | top_hat_white (const Image< I > &input, const Window< W > &win) |
Morphological white top-hat (for object / light objects). |
Namespace of mathematical morphology routines.
mln::trait::concrete< I >::ret mln::morpho::complementation | ( | const Image< I > & | input | ) | [inline] |
Morphological complementation: either a logical "not" (if morpho on sets) or an arithmetical complementation (if morpho on functions).
Definition at line 116 of file complementation.hh.
Referenced by hit_or_miss_background_closing(), hit_or_miss_background_opening(), hit_or_miss_closing(), and thinning().
void mln::morpho::complementation_inplace | ( | Image< I > & | input | ) | [inline] |
Morphological complementation, inplace version: either a logical "not" (if morpho on sets) or an arithmetical complementation (if morpho on functions).
Definition at line 130 of file complementation.hh.
mln::trait::concrete< I >::ret mln::morpho::contrast | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological contrast operator (based on top-hats).
This operator is Id + wth_B - bth_B.
Definition at line 57 of file contrast.hh.
References plus(), top_hat_black(), and top_hat_white().
mln::trait::concrete< I >::ret mln::morpho::dilation | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological dilation.
Definition at line 162 of file dilation.hh.
References general().
Referenced by gradient(), gradient_external(), hit_or_miss_background_opening(), hit_or_miss_opening(), laplacian(), mln::morpho::opening::approx::structural(), and mln::morpho::closing::approx::structural().
mln::trait::concrete< I >::ret mln::morpho::erosion | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological erosion.
Definition at line 163 of file erosion.hh.
References general().
Referenced by gradient(), gradient_internal(), laplacian(), mln::morpho::opening::approx::structural(), and mln::morpho::closing::approx::structural().
mln::trait::concrete< I >::ret mln::morpho::general | ( | const Op & | op, | |
const Image< I > & | input, | |||
const Window< W > & | win | |||
) | [inline] |
Morphological general routine.
Definition at line 168 of file general.hh.
Referenced by dilation(), and erosion().
mln::trait::concrete< I >::ret mln::morpho::gradient | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological gradient.
This operator is d_B - e_B.
Definition at line 76 of file gradient.hh.
References dilation(), erosion(), minus(), and mln::test::positive().
mln::trait::concrete< I >::ret mln::morpho::gradient_external | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological external gradient.
This operator is d_B - Id.
Definition at line 110 of file gradient.hh.
References dilation(), minus(), and mln::test::positive().
mln::trait::concrete< I >::ret mln::morpho::gradient_internal | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological internal gradient.
This operator is Id - e_B.
Definition at line 93 of file gradient.hh.
References erosion(), minus(), and mln::test::positive().
mln::trait::concrete< I >::ret mln::morpho::hit_or_miss | ( | const Image< I > & | input, | |
const Window< Wh > & | win_hit, | |||
const Window< Wm > & | win_miss | |||
) | [inline] |
Morphological hit-or-miss.
This operator is HMT_(Bh,Bm) = e_Bh /\ (e_Bm o C).
Definition at line 276 of file hit_or_miss.hh.
Referenced by thickening(), and thinning().
mln::trait::concrete< I >::ret mln::morpho::hit_or_miss_background_closing | ( | const Image< I > & | input, | |
const Window< Wh > & | win_hit, | |||
const Window< Wm > & | win_miss | |||
) | [inline] |
Morphological hit-or-miss closing of the background.
This operator is C o HMTopeBG o C.
Definition at line 357 of file hit_or_miss.hh.
References complementation(), hit_or_miss_background_opening(), and hit_or_miss_closing().
mln::trait::concrete< I >::ret mln::morpho::hit_or_miss_background_opening | ( | const Image< I > & | input, | |
const Window< Wh > & | win_hit, | |||
const Window< Wm > & | win_miss | |||
) | [inline] |
Morphological hit-or-miss opening of the background.
This operator is HMTopeBG = HMTope_(Bm,Bh) o C = d_(-Bm) o HMT_(Bh,Bm).
Definition at line 314 of file hit_or_miss.hh.
References complementation(), dilation(), hit_or_miss_opening(), and mln::win::sym().
Referenced by hit_or_miss_background_closing(), and thick_miss().
mln::trait::concrete< I >::ret mln::morpho::hit_or_miss_closing | ( | const Image< I > & | input, | |
const Window< Wh > & | win_hit, | |||
const Window< Wm > & | win_miss | |||
) | [inline] |
Morphological hit-or-miss closing.
This operator is C o HMTope o C.
Definition at line 337 of file hit_or_miss.hh.
References complementation(), and hit_or_miss_opening().
Referenced by hit_or_miss_background_closing().
mln::trait::concrete< I >::ret mln::morpho::hit_or_miss_opening | ( | const Image< I > & | input, | |
const Window< Wh > & | win_hit, | |||
const Window< Wm > & | win_miss | |||
) | [inline] |
Morphological hit-or-miss opening.
This operator is HMTope_(Bh,Bm) = d_(-Bh) o HMT_(Bh,Bm).
Definition at line 294 of file hit_or_miss.hh.
References dilation(), and mln::win::sym().
Referenced by hit_or_miss_background_opening(), hit_or_miss_closing(), and thin_fit().
void mln::morpho::laplacian | ( | const Image< I > & | input, | |
const Window< W > & | win, | |||
Image< O > & | output | |||
) | [inline] |
Morphological laplacian.
This operator is (d_B - Id) - (Id - e_B).
Definition at line 63 of file laplacian.hh.
References dilation(), erosion(), mln::data::fill(), and minus().
edge_image< util::site_pair< point2d >, V, util::graph > mln::morpho::line_gradient | ( | const mln::image2d< V > & | ima | ) |
Create a line graph image representing the gradient norm of a mln::image2d.
Definition at line 70 of file line_gradient.hh.
References mln::math::abs(), mln::image2d< T >::domain(), mln::box< P >::has(), mln::window< D >::insert(), and mln::Box< E >::nsites().
mln::trait::ch_value< I, L >::ret mln::morpho::meyer_wst | ( | const Image< I > & | input, | |
const Neighborhood< N > & | nbh, | |||
L & | nbasins | |||
) |
Meyer's Watershed Transform (WST) algorithm.
[in] | input | The input image. |
[in] | nbh | The connexity of markers. |
[out] | nbasins | 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. Definition at line 108 of file meyer_wst.hh.
References mln::data::fill(), mln::p_priority< P, Q >::front(), mln::initialize(), mln::p_priority< P, Q >::pop(), mln::p_priority< P, Q >::push(), mln::labeling::regional_minima(), and mln::literal::zero.
mln::trait::ch_value< I, L >::ret mln::morpho::meyer_wst | ( | 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.
Definition at line 202 of file meyer_wst.hh.
mln::trait::concrete< I >::ret mln::morpho::min | ( | const Image< I > & | lhs, | |
const Image< J > & | rhs | |||
) | [inline] |
Morphological min: either a logical "and" (if morpho on sets) or an arithmetical min (if morpho on functions).
Definition at line 112 of file morpho/min.hh.
void mln::morpho::min_inplace | ( | Image< I > & | lhs, | |
const Image< J > & | rhs | |||
) | [inline] |
Morphological min, inplace version: either a logical "and" (if morpho on sets) or an arithmetical min (if morpho on functions).
Definition at line 125 of file morpho/min.hh.
mln::trait::concrete< I >::ret mln::morpho::minus | ( | const Image< I > & | lhs, | |
const Image< J > & | rhs | |||
) | [inline] |
Morphological minus: either a logical "and not" (if morpho on sets) or an arithmetical minus (if morpho on functions).
Definition at line 87 of file morpho/minus.hh.
Referenced by gradient(), gradient_external(), gradient_internal(), laplacian(), thin_fit(), thinning(), top_hat_black(), mln::morpho::elementary::top_hat_black(), top_hat_self_complementary(), mln::morpho::elementary::top_hat_self_complementary(), top_hat_white(), and mln::morpho::elementary::top_hat_white().
mln::trait::concrete< I >::ret mln::morpho::plus | ( | const Image< I > & | lhs, | |
const Image< J > & | rhs | |||
) | [inline] |
Morphological plus: either a "logical or" (if morpho on sets) or an "arithmetical plus" (if morpho on functions).
Definition at line 86 of file morpho/plus.hh.
Referenced by contrast(), thick_miss(), and thickening().
mln::trait::concrete< I >::ret mln::morpho::rank_filter | ( | const Image< I > & | input, | |
const Window< W > & | win, | |||
unsigned | k | |||
) | [inline] |
Morphological rank_filter.
Definition at line 213 of file rank_filter.hh.
mln::trait::concrete< I >::ret mln::morpho::thick_miss | ( | const Image< I > & | input, | |
const Window< Wfg > & | win_fg, | |||
const Window< Wbg > & | win_bg | |||
) | [inline] |
Morphological thick-miss.
This operator is THICK_B = Id + HMTopeBG_B, where B = (Bfg, Bbg).
Definition at line 59 of file thick_miss.hh.
References hit_or_miss_background_opening(), and plus().
mln::trait::concrete< I >::ret mln::morpho::thickening | ( | const Image< I > & | input, | |
const Window< Wfg > & | win_fg, | |||
const Window< Wbg > & | win_bg | |||
) | [inline] |
Morphological thickening.
This operator is THICK_B = Id + HMT_B, where B = (Bfg, Bbg).
Definition at line 88 of file thickening.hh.
References hit_or_miss(), and plus().
Referenced by thinning().
mln::trait::concrete< I >::ret mln::morpho::thin_fit | ( | const Image< I > & | input, | |
const Window< Wfg > & | win_fg, | |||
const Window< Wbg > & | win_bg | |||
) | [inline] |
Morphological thin-fit.
This operator is THIN_B = Id - HMTope_B where B = (Bfg, Bbg).
Definition at line 87 of file thin_fit.hh.
References hit_or_miss_opening(), and minus().
mln::trait::concrete< I >::ret mln::morpho::thinning | ( | const Image< I > & | input, | |
const Window< Wfg > & | win_fg, | |||
const Window< Wbg > & | win_bg | |||
) | [inline] |
Morphological thinning.
This operator is THIN_B = Id - HMT_B, where B = (Bfg, Bbg).
Definition at line 90 of file thinning.hh.
References complementation(), hit_or_miss(), minus(), and thickening().
mln::trait::concrete< I >::ret mln::morpho::top_hat_black | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological black top-hat (for background / dark objects).
This operator is clo_B - Id.
Definition at line 102 of file top_hat.hh.
References minus(), and mln::test::positive().
Referenced by contrast().
mln::trait::concrete< I >::ret mln::morpho::top_hat_self_complementary | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological self-complementary top-hat.
This operator is
= top_hat_white + top_hat_black
= (input - opening) + (closing - input)
= closing - opening.
Definition at line 121 of file top_hat.hh.
References minus(), and mln::test::positive().
mln::trait::concrete< I >::ret mln::morpho::top_hat_white | ( | const Image< I > & | input, | |
const Window< W > & | win | |||
) | [inline] |
Morphological white top-hat (for object / light objects).
This operator is Id - ope_B.
Definition at line 83 of file top_hat.hh.
References minus(), and mln::test::positive().
Referenced by contrast().