Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::Binary Namespace Reference

Functions

template<class D >
Vector< size_t > COG (const Image< D > &img)
 Computes the coordenates of the center of gravity of the input image. More...
 
template<class D >
void Complement (Image< D > &img)
 Inverts the intensity of each pixel of image img using its maximum value, i.e., data[ x ] = ( data[ x ] + 1 ) % 2. More...
 
template<class D >
void Complement (Image< D > &img, const Image< D > &msk)
 Same as Complement( img ), but restricted to the pixels of msk image which intensities are not zero. More...
 

Function Documentation

template<class D >
Vector< size_t > Bial::Binary::COG ( const Image< D > &  img)

Computes the coordenates of the center of gravity of the input image.

Date
2012/Oct/18
Parameters
Abinary image.
Returns
The coordenates of the center of gravity of the input image.
Warning
none.
template<class D >
void Bial::Binary::Complement ( Image< D > &  img)

Inverts the intensity of each pixel of image img using its maximum value, i.e., data[ x ] = ( data[ x ] + 1 ) % 2.

Date
2013/Sep/05
Parameters
imgA binary image.
Returns
none.
Warning
none.
template<class D >
void Bial::Binary::Complement ( Image< D > &  img,
const Image< D > &  msk 
)

Same as Complement( img ), but restricted to the pixels of msk image which intensities are not zero.

Date
2013/Sep/05
Parameters
imgAn image.
mskAn image.
Returns
none.
Warning
none.