Namespaces | |
| namespace | impl |
| Implementation namespace of test namespace. | |
Functions | |
| template<typename I> | |
| bool | positive (const Image< I > &input) |
| Test if an image only contains positive values. | |
| template<typename S, typename F> | |
| bool | predicate (const Site_Set< S > &pset, const Function_v2b< F > &f) |
Test if all points of pset verify the predicate f. | |
| template<typename I, typename J, typename F> | |
| bool | predicate (const Image< I > &lhs, const Image< J > &rhs, const Function_vv2b< F > &f) |
Test if all pixel values of lhs and rhs verify the predicate f. | |
| template<typename I, typename F> | |
| bool | predicate (const Image< I > &ima, const Function_v2b< F > &f) |
Test if all pixel values of ima verify the predicate f. | |
| bool mln::test::positive | ( | const Image< I > & | input | ) | [inline] |
Test if an image only contains positive values.
References predicate(), and mln::literal::zero.
Referenced by mln::morpho::gradient(), mln::morpho::gradient_external(), mln::morpho::gradient_internal(), mln::morpho::top_hat_black(), mln::morpho::elementary::top_hat_black(), mln::morpho::top_hat_self_complementary(), mln::morpho::elementary::top_hat_self_complementary(), mln::morpho::top_hat_white(), and mln::morpho::elementary::top_hat_white().
| bool mln::test::predicate | ( | const Site_Set< S > & | pset, | |
| const Function_v2b< F > & | f | |||
| ) | [inline] |
| bool mln::test::predicate | ( | const Image< I > & | lhs, | |
| const Image< J > & | rhs, | |||
| const Function_vv2b< F > & | f | |||
| ) | [inline] |
Test if all pixel values of lhs and rhs verify the predicate f.
| [in] | lhs | The image. |
| [in] | rhs | The image. |
| [in] | f | The predicate. |
| bool mln::test::predicate | ( | const Image< I > & | ima, | |
| const Function_v2b< F > & | f | |||
| ) | [inline] |
Test if all pixel values of ima verify the predicate f.
| [in] | ima | The image. |
| [in] | f | The predicate. |
Referenced by mln::operator<(), mln::operator<=(), mln::operator==(), and positive().
1.5.6