mimas::_bilevel< T > Struct Template Reference

Convert boolean-pixel to bilevel-pixel. More...

#include <functions.h>

Inheritance diagram for mimas::_bilevel< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::_bilevel< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 _bilevel (T _val1, T _val2)
operator() (const T &x, const T &y) const
 Compare value with threshold and map to {val1,val2}.

Public Attributes

val1
val2

Detailed Description

template<typename T>
struct mimas::_bilevel< T >

Convert boolean-pixel to bilevel-pixel.

Definition at line 90 of file functions.h.


Constructor & Destructor Documentation

template<typename T>
mimas::_bilevel< T >::_bilevel ( _val1,
_val2 
) [inline]

Definition at line 91 of file functions.h.


Member Function Documentation

template<typename T>
T mimas::_bilevel< T >::operator() ( const T &  x,
const T &  y 
) const [inline]

Compare value with threshold and map to {val1,val2}.

Parameters:
x The value to be considered.
y The threshold to compare with.
Returns:
Bilevel-pixel, which is either val1 or val2.

Definition at line 96 of file functions.h.

References mimas::_bilevel< T >::val1, and mimas::_bilevel< T >::val2.


Member Data Documentation

template<typename T>
T mimas::_bilevel< T >::val1

Definition at line 97 of file functions.h.

Referenced by mimas::_bilevel< T >::operator()().

template<typename T>
T mimas::_bilevel< T >::val2

Definition at line 98 of file functions.h.

Referenced by mimas::_bilevel< T >::operator()().


The documentation for this struct was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:27 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...