$extrastylesheet
#include <mln/value/internal/gray_.hh>
Public Member Functions | |
gray_ () | |
gray_ (int val) | |
C & | handle_ () |
template<unsigned m> | |
operator gray_< m > () const | |
template<unsigned m> | |
operator graylevel< m > () const | |
operator graylevel_f () const | |
const C & | to_enc () const |
V | to_equiv () const |
N | to_interop () const |
int | value () const |
gray_ (const literal::white_t &) | |
gray_ (const literal::black_t &) | |
template<unsigned m> | |
gray_ (const graylevel< m > &val) | |
template<unsigned m> | |
gray_< n > & | operator= (const graylevel< m > &val) |
Protected Attributes | |
enc | v_ |
Public Types | |
typedef Scalar< void > | category |
typedef int | enc |
typedef int | equiv |
typedef gray_< n > | exact_t |
typedef N | interop |
General gray-level class where n bits is not know at compile-time.
This class is used for exchange between gray-level types purpose.
mln::value::internal::gray_< n >::gray_ | ( | ) |
Constructor without argument.
mln::value::internal::gray_< n >::gray_ | ( | int | val | ) |
Constructor with int.
|
explicit |
Constructors/assignments with literals.
|
explicit |
mln::value::internal::gray_< n >::gray_ | ( | const graylevel< m > & | val | ) |
Constructors/assigments with graylevel.
|
inlineinherited |
Definition at line 81 of file value_like.hh.
mln::value::internal::gray_< n >::operator gray_< m > | ( | ) | const |
Return an equivalent gray_ encoded on nbits
bits.
mln::value::internal::gray_< n >::operator graylevel< m > | ( | ) | const |
Conversion to graylevel.
mln::value::internal::gray_< n >::operator graylevel_f | ( | ) | const |
Conversion to graylevel_f.
gray_<n>& mln::value::internal::gray_< n >::operator= | ( | const graylevel< m > & | val | ) |
|
inherited |
Explicit conversion towards encoding type.
|
inherited |
Explicit conversion towards equivalent type.
|
inherited |
Explicit conversion towards interoperation type.
int mln::value::internal::gray_< n >::value | ( | ) | const |
Access to std type.
|
protectedinherited |
Definition at line 84 of file value_like.hh.
|
inherited |
Definition at line 57 of file concept/scalar.hh.
typedef int mln::value::internal::gray_< n >::enc |
typedef int mln::value::internal::gray_< n >::equiv |
|
inherited |
|
inherited |
Interoperation associated type.
Definition at line 68 of file value_like.hh.