$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::test Namespace Reference

Namespaces

namespace  impl

Functions

template<typename I >
bool positive (const Image< I > &input)
template<typename I , typename F >
bool predicate (const Image< I > &ima, const Function_v2b< F > &f)
template<typename I , typename J , typename F >
bool predicate (const Image< I > &lhs, const Image< J > &rhs, const Function_vv2b< F > &f)
template<typename S , typename F >
bool predicate (const Site_Set< S > &pset, const Function_v2b< F > &f)

Detailed Description

Namespace of image processing routines related to pixel tests.

Function Documentation

template<typename I >
bool mln::test::positive ( const Image< I > &  input)

Test if an image only contains positive or null (i.e.

``non-negative'') values.

This routine checks whether all the values of an image are non-negative, thus considering includes 0 as a valid value (which is usually not the case of the term ``positive'' in English).

template<typename I , typename F >
bool mln::test::predicate ( const Image< I > &  ima,
const Function_v2b< F > &  f 
)

Test if all pixel values of ima verify the predicate f.

Parameters
[in]imaThe image.
[in]fThe predicate.
template<typename I , typename J , typename F >
bool mln::test::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.

Parameters
[in]lhsThe image.
[in]rhsThe image.
[in]fThe predicate.
template<typename S , typename F >
bool mln::test::predicate ( const Site_Set< S > &  pset,
const Function_v2b< F > &  f 
)

Test if all points of pset verify the predicate f.

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