Milena (Olena)  User documentation 2.0a Id
mln::test Namespace Reference

Namespace of image processing routines related to pixel tests. More...

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 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.
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 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.

Detailed Description

Namespace of image processing routines related to pixel tests.


Function Documentation

template<typename I , typename F >
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.

Parameters:
[in]imaThe image.
[in]fThe predicate.

Definition at line 207 of file predicate.hh.

Referenced by mln::operator<(), mln::operator<=(), mln::operator==(), and positive().

template<typename I , typename J , typename F >
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.

Parameters:
[in]lhsThe image.
[in]rhsThe image.
[in]fThe predicate.

Definition at line 222 of file predicate.hh.

template<typename S , typename F >
bool mln::test::predicate ( const Site_Set< S > &  pset,
const Function_v2b< F > &  f 
) [inline]

Test if all points of pset verify the predicate f.

Parameters:
[in]psetThe point set.
[in]fThe predicate.

Definition at line 242 of file predicate.hh.

 All Classes Namespaces Functions Variables Typedefs Enumerator