$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::internal::gray_< n > Class Template Reference

#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
to_equiv () const
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

Detailed Description

template<unsigned n>
class mln::value::internal::gray_< n >

General gray-level class where n bits is not know at compile-time.

This class is used for exchange between gray-level types purpose.

Definition at line 131 of file gray_.hh.

Constructor & Destructor Documentation

template<unsigned n>
mln::value::internal::gray_< n >::gray_ ( )

Constructor without argument.

template<unsigned n>
mln::value::internal::gray_< n >::gray_ ( int  val)

Constructor with int.

template<unsigned n>
mln::value::internal::gray_< n >::gray_ ( const literal::white_t )
explicit

Constructors/assignments with literals.

template<unsigned n>
mln::value::internal::gray_< n >::gray_ ( const literal::black_t )
explicit
template<unsigned n>
template<unsigned m>
mln::value::internal::gray_< n >::gray_ ( const graylevel< m > &  val)

Constructors/assigments with graylevel.

Member Function Documentation

template<typename V, typename C, typename N, typename E>
C& mln::value::internal::value_like_< V, C, N, E >::handle_ ( )
inlineinherited

Definition at line 81 of file value_like.hh.

template<unsigned n>
template<unsigned m>
mln::value::internal::gray_< n >::operator gray_< m > ( ) const

Return an equivalent gray_ encoded on nbits bits.

template<unsigned n>
template<unsigned m>
mln::value::internal::gray_< n >::operator graylevel< m > ( ) const

Conversion to graylevel.

template<unsigned n>
mln::value::internal::gray_< n >::operator graylevel_f ( ) const

Conversion to graylevel_f.

template<unsigned n>
template<unsigned m>
gray_<n>& mln::value::internal::gray_< n >::operator= ( const graylevel< m > &  val)
template<typename V, typename C, typename N, typename E>
const C& mln::value::internal::value_like_< V, C, N, E >::to_enc ( ) const
inherited

Explicit conversion towards encoding type.

template<typename V, typename C, typename N, typename E>
V mln::value::internal::value_like_< V, C, N, E >::to_equiv ( ) const
inherited

Explicit conversion towards equivalent type.

template<typename V, typename C, typename N, typename E>
N mln::value::internal::value_like_< V, C, N, E >::to_interop ( ) const
inherited

Explicit conversion towards interoperation type.

template<unsigned n>
int mln::value::internal::gray_< n >::value ( ) const

Access to std type.

Member Data Documentation

template<typename V, typename C, typename N, typename E>
enc mln::value::internal::value_like_< V, C, N, E >::v_
protectedinherited

Definition at line 84 of file value_like.hh.

Member Typedef Documentation

typedef Scalar<void> mln::value::Scalar< gray_< n > >::category
inherited

Definition at line 57 of file concept/scalar.hh.

template<unsigned n>
typedef int mln::value::internal::gray_< n >::enc

Encoding associated type.

Definition at line 144 of file gray_.hh.

template<unsigned n>
typedef int mln::value::internal::gray_< n >::equiv

Equivalent associated type.

Definition at line 147 of file gray_.hh.

typedef gray_< n > mln::Object< gray_< n > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename V, typename C, typename N, typename E>
typedef N mln::value::internal::value_like_< V, C, N, E >::interop
inherited

Interoperation associated type.

Definition at line 68 of file value_like.hh.