#include <graylevel.hh>
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. |
mln::value::graylevel< n >::graylevel | ( | ) | [inline] |
Constructor without argument.
mln::value::graylevel< n >::graylevel | ( | const graylevel< n > & | rhs | ) | [inline] |
Copy constructor.
mln::value::graylevel< n >::graylevel | ( | int | val | ) | [inline] |
Constructor from int.
mln::value::graylevel< n >::graylevel | ( | const graylevel< m > & | rhs | ) | [inline] |
mln::value::graylevel< n >::graylevel | ( | const mln::literal::black_t & | ) | [inline] |
Ctors with literals.
graylevel< n > & mln::value::graylevel< n >::operator= | ( | const mln::literal::black_t & | ) | [inline] |
Assigment with literals.
graylevel< n > & mln::value::graylevel< n >::operator= | ( | const graylevel< m > & | rhs | ) | [inline] |
graylevel< n > & mln::value::graylevel< n >::operator= | ( | int | val | ) | [inline] |
Assigment with int.
graylevel< n > & mln::value::graylevel< n >::operator= | ( | const graylevel< n > & | rhs | ) | [inline] |
Assigment.
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=().
unsigned mln::value::graylevel< n >::value | ( | ) | const [inline] |
Access to std type.
Referenced by mln::value::graylevel< n >::graylevel(), and mln::value::graylevel< n >::operator=().