Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::logical Namespace Reference

Namespace of logic. More...

Namespaces

namespace  impl
 Implementation namespace of logical namespace.
 

Functions

template<typename L , typename R >
void and_inplace (Image< L > &lhs, const Image< R > &rhs)
 
template<typename L , typename R >
mln::trait::ch_value< L,
typename
mln::fun::vv2v::land_not
< typename L::value, typename
R::value >::result >::ret 
and_not (const Image< L > &lhs, const Image< R > &rhs)
 
template<typename L , typename R >
void and_not_inplace (Image< L > &lhs, const Image< R > &rhs)
 
template<typename I >
void not_inplace (Image< I > &input)
 
template<typename L , typename R >
void or_inplace (Image< L > &lhs, const Image< R > &rhs)
 
template<typename L , typename R >
void xor_inplace (Image< L > &lhs, const Image< R > &rhs)
 

Detailed Description

Namespace of logic.

Function Documentation

template<typename L , typename R >
void mln::logical::and_inplace ( Image< L > &  lhs,
const Image< R > &  rhs 
)
inline

Point-wise in-place "logical and" of image rhs in image lhs.

  \param[in,out] lhs First operand image.
  \param[in] rhs Second operand image.

  It performs: \n
    for all p of rhs.domain \n
      lhs(p) = lhs(p) and rhs(p)

  \pre \p rhs.domain >= \p lhs.domain

Definition at line 91 of file logical/and.hh.

References mln::data::transform_inplace().

template<typename L , typename R >
mln::trait::ch_value< L, typename mln::fun::vv2v::land_not< typename L::value, typename R::value >::result >::ret mln::logical::and_not ( const Image< L > &  lhs,
const Image< R > &  rhs 
)
inline

Point-wise "logical and-not" between images lhs and rhs.

  \param[in] lhs First operand image.
  \param[in] rhs Second operand image.
  \result The result image.

  \pre \p lhs.domain == \p rhs.domain

Definition at line 76 of file and_not.hh.

References mln::data::transform().

template<typename L , typename R >
void mln::logical::and_not_inplace ( Image< L > &  lhs,
const Image< R > &  rhs 
)
inline

Point-wise in-place "logical and-not" of image rhs in image lhs.

  \param[in,out] lhs First operand image.
  \param[in] rhs Second operand image.

  It performs: \n
    for all p of rhs.domain \n
      lhs(p) = lhs(p) and not rhs(p)

  \pre \p rhs.domain >= \p lhs.domain

Definition at line 91 of file and_not.hh.

References mln::data::transform_inplace().

template<typename I >
void mln::logical::not_inplace ( Image< I > &  input)
inline

Point-wise in-place "logical not" of image input.

  \param[in,out] input The target image.

  It performs: \n
    for all p of input.domain \n
      input(p) = not input(p)

  \pre \p input.is_valid

Definition at line 88 of file logical/not.hh.

References mln::data::transform_inplace().

template<typename L , typename R >
void mln::logical::or_inplace ( Image< L > &  lhs,
const Image< R > &  rhs 
)
inline

Point-wise in-place "logical or" of image rhs in image lhs.

  \param[in,out] lhs First operand image.
  \param[in] rhs Second operand image.

  It performs: \n
    for all p of rhs.domain \n
      lhs(p) = lhs(p) or rhs(p)

  \pre \p rhs.domain >= \p lhs.domain

Definition at line 91 of file logical/or.hh.

References mln::data::transform_inplace().

template<typename L , typename R >
void mln::logical::xor_inplace ( Image< L > &  lhs,
const Image< R > &  rhs 
)
inline

Point-wise in-place "logical xor" of image rhs in image lhs.

  \param[in,out] lhs First operand image.
  \param[in] rhs Second operand image.

  It performs: \n
    for all p of rhs.domain \n
      lhs(p) = lhs(p) xor rhs(p)

  \pre \p rhs.domain >= \p lhs.domain

Definition at line 91 of file logical/xor.hh.

References mln::data::transform_inplace().