SMIL 1.1.2
Loading...
Searching...
No Matches

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

Function Documentation

◆ logicAnd()

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

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()

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

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()

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

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()

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

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()

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

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()

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

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