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.

Parameters:
[in,out] lhs First operand image.
[in] rhs Second operand image.
It performs:
for all p of rhs.domain
lhs(p) = lhs(p) and rhs(p)

Precondition:
rhs.domain >= lhs.domain

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.

Parameters:
[in] lhs First operand image.
[in] rhs Second operand image.
Returns:
The result image.
Precondition:
lhs.domain == rhs.domain

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.

Parameters:
[in,out] lhs First operand image.
[in] rhs Second operand image.
It performs:
for all p of rhs.domain
lhs(p) = lhs(p) and not rhs(p)

Precondition:
rhs.domain >= lhs.domain

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.

Parameters:
[in,out] input The target image.
It performs:
for all p of input.domain
input(p) = not input(p)

Precondition:
input.is_valid

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.

Parameters:
[in,out] lhs First operand image.
[in] rhs Second operand image.
It performs:
for all p of rhs.domain
lhs(p) = lhs(p) or rhs(p)

Precondition:
rhs.domain >= lhs.domain

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.

Parameters:
[in,out] lhs First operand image.
[in] rhs Second operand image.
It performs:
for all p of rhs.domain
lhs(p) = lhs(p) xor rhs(p)

Precondition:
rhs.domain >= lhs.domain

References mln::data::transform_inplace().


Generated on Tue Jul 14 16:33:12 2009 for Milena (Olena) by  doxygen 1.5.9