$extrastylesheet
Functions | |
template<typename T , typename F , typename P > | |
void | direct (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
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) |
template<typename T , typename F , typename P > | |
void | max (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
template<typename T , typename F , typename P > | |
void | min (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
template<typename T , typename F , typename P > | |
void | subtractive (const T &tree, Image< F > &f_, const Function_v2b< P > &pred_) |
Namespace for attribute filtering.
|
inline |
Direct non-pruning strategy.
A node is removed if it does not verify the predicate. The sub-components remain intact.
[in] | tree | Component tree. |
[out] | f_ | Image to filter. |
[in] | pred_ | Filtering criterion. |
|
inline |
|
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. |
|
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. |
|
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. |