SMIL  1.0.4

Detailed Description

+ Collaboration diagram for Logical functions:

Functions

template<class T >
RES_T logicAnd (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 logicAnd() - Logic AND operator, pixel by pixel, of two images More...
 
template<class T >
RES_T bitAnd (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 bitAnd() - Bitwise AND operator, pixel by pixel, of two images More...
 
template<class T >
RES_T logicOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 logicOr() - Logic OR operator, pixel by pixel, of two images More...
 
template<class T >
RES_T bitOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 bitOr() - Bitwise OR operator, pixel by pixel, of two images More...
 
template<class T >
RES_T logicXOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 logicXOr() - Logic XOR operator, pixel by pixel, of two images More...
 
template<class T >
RES_T bitXOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 bitXOr() - Bitwise XOR operator, pixel by pixel, of two images More...
 

Function Documentation

◆ logicAnd()

RES_T smil::logicAnd ( const Image< T > &  imIn1,
const Image< T > &  imIn2,
Image< T > &  imOut 
)

logicAnd() - Logic AND operator, pixel by pixel, of two images

This function evaluates the logical AND of two images. This function works both binary and grey images

The result is a image where :

  • imOut(x) = (imIn(x) != 0 AND imIn2(x) != 0 ? 1 : 0)
Parameters
[in]imIn1: input image
[in]imIn2: input image
[out]imOut: output image

◆ bitAnd()

RES_T smil::bitAnd ( const Image< T > &  imIn1,
const Image< T > &  imIn2,
Image< T > &  imOut 
)

bitAnd() - Bitwise AND operator, pixel by pixel, of two images

This function evaluates the bitwise AND of two images. This function works both binary and grey images

The result is a image where :

  • imOut(x) = imIn(x) & imIn2(x)
Parameters
[in]imIn1: input image
[in]imIn2: input image
[out]imOut: output image

◆ logicOr()

RES_T smil::logicOr ( const Image< T > &  imIn1,
const Image< T > &  imIn2,
Image< T > &  imOut 
)

logicOr() - Logic OR operator, pixel by pixel, of two images

This function evaluates the logical OR of two images. This function works both binary and grey images

The result is a image where :

  • imOut(x) = (imIn(x) != 0 OR imIn2(x) != 0 ? 1 : 0)
Parameters
[in]imIn1: input image
[in]imIn2: input image
[out]imOut: output image

◆ bitOr()

RES_T smil::bitOr ( const Image< T > &  imIn1,
const Image< T > &  imIn2,
Image< T > &  imOut 
)

bitOr() - Bitwise OR operator, pixel by pixel, of two images

This function evaluates the bitwise OR of two images. This function works both binary and grey images

The result is a image where :

  • imOut(x) = imIn(x) | imIn2(x)
Parameters
[in]imIn1: input image
[in]imIn2: input image
[out]imOut: output image

◆ logicXOr()

RES_T smil::logicXOr ( const Image< T > &  imIn1,
const Image< T > &  imIn2,
Image< T > &  imOut 
)

logicXOr() - Logic XOR operator, pixel by pixel, of two images

This function evaluates the logical exclusive OR of two images. This function works both binary and grey images

The result is a image where :

  • imOut(x) = (imIn1(x) != 0 && imIn2(x) == 0) || (imIn1(x) == 0 && imIn2(x) != 0) ? 1 : 0)
Parameters
[in]imIn1: input image
[in]imIn2: input image
[out]imOut: output image

◆ bitXOr()

RES_T smil::bitXOr ( const Image< T > &  imIn1,
const Image< T > &  imIn2,
Image< T > &  imOut 
)

bitXOr() - Bitwise XOR operator, pixel by pixel, of two images

This function evaluates the bitwise exclusive OR of two images. This function works both binary and grey images

The result is a image where :

  • imOut(x) = imIn(x) ^ imIn2(x)
Parameters
[in]imIn1: input image
[in]imIn2: input image
[out]imOut: output image