Namespace for attribute filtering. More...
Functions | |
| template<typename T , typename F , typename P > | |
| void | direct (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
| Direct non-pruning strategy. | |
| template<typename T , typename F , typename P > | |
| void | filter (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_, const typename F::value &v) |
Filter the image f_ with a given value. | |
| template<typename T , typename F , typename P > | |
| void | max (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
| Max pruning strategy. | |
| template<typename T , typename F , typename P > | |
| void | min (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
| Min pruning strategy. | |
| template<typename T , typename F , typename P > | |
| void | subtractive (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
| Subtractive pruning strategy. | |
Namespace for attribute filtering.
| void mln::morpho::tree::filter::direct | ( | const T & | tree, | |
| Image< F > & | f_, | |||
| const Function_v2b< P > & | pred_ | |||
| ) | [inline] |
| void mln::morpho::tree::filter::filter | ( | const T & | tree, | |
| Image< F > & | f_, | |||
| const Function_v2b< P > & | pred_, | |||
| const typename F::value & | v | |||
| ) | [inline] |
Filter the image f_ with a given value.
The sub-components of nodes that does not match the predicate pred_ are filled with the given value v.
Definition at line 73 of file morpho/tree/filter/filter.hh.
References mln::data::fill(), and mln::initialize().
| void mln::morpho::tree::filter::max | ( | const T & | tree, | |
| Image< F > & | f_, | |||
| const Function_v2b< P > & | pred_ | |||
| ) | [inline] |
Max pruning strategy.
A node is removed iif all of its children are removed or if it does not verify the predicate pred_.
| [in] | tree | Component tree. |
| [out] | f_ | Image to filter. |
| [in] | pred_ | Filtering criterion. |
Definition at line 74 of file morpho/tree/filter/max.hh.
References mln::data::fill(), and mln::initialize().
| void mln::morpho::tree::filter::min | ( | const T & | tree, | |
| Image< F > & | f_, | |||
| const Function_v2b< P > & | pred_ | |||
| ) | [inline] |
Min pruning strategy.
A node is removed iif its parent is removed or if it does not verify the predicate pred_.
| [in] | tree | Component tree. |
| [out] | f_ | Image to filter. |
| [in] | pred_ | Filtering criterion. |
Definition at line 75 of file morpho/tree/filter/min.hh.
References mln::data::fill(), and mln::initialize().
| void mln::morpho::tree::filter::subtractive | ( | const T & | tree, | |
| Image< F > & | f_, | |||
| const Function_v2b< P > & | pred_ | |||
| ) | [inline] |
Subtractive pruning strategy.
The node is removed if it does not verify the predicate. The sub-components values are set to the value of the removed component.
| [in] | tree | Component tree. |
| [out] | f_ | Image to filter. |
| [in] | pred_ | Filtering criterion. |
Definition at line 77 of file subtractive.hh.
References mln::morpho::tree::propagate_if().
1.7.1