mln::value::graylevel< n > Struct Template Reference

General gray-level class on n bits. More...

#include <graylevel.hh>

Inheritance diagram for mln::value::graylevel< n >:

Inheritance graph

List of all members.

Public Member Functions

template<unsigned m>
 graylevel (const graylevel< m > &rhs)
 Constructor from any graylevel.
 graylevel (int val)
 Constructor from int.
 graylevel (const graylevel< n > &rhs)
 Copy constructor.
 graylevel ()
 Constructor without argument.
template<unsigned m>
graylevel< n > & operator= (const graylevel< m > &rhs)
 Assigment with any graylevel.
graylevel< n > & operator= (int val)
 Assigment with int.
graylevel< n > & operator= (const graylevel< n > &rhs)
 Assigment.
float to_float () const
 Conversion to float between 0 and 1.
unsigned value () const
 Access to std type.
 graylevel (const mln::literal::black_t &)
 Ctors with literals.
graylevel< n > & operator= (const mln::literal::black_t &)
 Assigment with literals.


Detailed Description

template<unsigned n>
struct mln::value::graylevel< n >

General gray-level class on n bits.

Constructor & Destructor Documentation

template<unsigned n>
mln::value::graylevel< n >::graylevel (  )  [inline]

Constructor without argument.

template<unsigned n>
mln::value::graylevel< n >::graylevel ( const graylevel< n > &  rhs  )  [inline]

Copy constructor.

template<unsigned n>
mln::value::graylevel< n >::graylevel ( int  val  )  [inline]

Constructor from int.

template<unsigned n>
template<unsigned m>
mln::value::graylevel< n >::graylevel ( const graylevel< m > &  rhs  )  [inline]

Constructor from any graylevel.

References mln::value::graylevel< n >::value().

template<unsigned n>
mln::value::graylevel< n >::graylevel ( const mln::literal::black_t  )  [inline]

Ctors with literals.


Member Function Documentation

template<unsigned n>
graylevel< n > & mln::value::graylevel< n >::operator= ( const mln::literal::black_t  )  [inline]

Assigment with literals.

template<unsigned n>
template<unsigned m>
graylevel< n > & mln::value::graylevel< n >::operator= ( const graylevel< m > &  rhs  )  [inline]

Assigment with any graylevel.

References mln::value::graylevel< n >::value().

template<unsigned n>
graylevel< n > & mln::value::graylevel< n >::operator= ( int  val  )  [inline]

Assigment with int.

template<unsigned n>
graylevel< n > & mln::value::graylevel< n >::operator= ( const graylevel< n > &  rhs  )  [inline]

Assigment.

template<unsigned n>
float mln::value::graylevel< n >::to_float (  )  const [inline]

Conversion to float between 0 and 1.

Referenced by mln::value::graylevel_f::graylevel_f(), and mln::value::graylevel_f::operator=().

template<unsigned n>
unsigned mln::value::graylevel< n >::value (  )  const [inline]


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