$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::rgb8 Struct Reference

#include <mln/value/rgb8.hh>

Public Member Functions

 rgb8 ()
 rgb8 (int r, int g, int b)
 rgb8 (const algebra::vec< 3, int > &rhs)
 rgb8 (const algebra::vec< 3, unsigned > &rhs)
 rgb8 (const algebra::vec< 3, int_u< n > > &rhs)
 rgb8 (const algebra::vec< 3, float > &rhs)
 rgb8 (const mln::literal::white_t &)
 rgb8 (const mln::literal::black_t &)
 rgb8 (const mln::literal::light_gray_t &)
 rgb8 (const mln::literal::medium_gray_t &)
 rgb8 (const mln::literal::dark_gray_t &)
 rgb8 (const mln::literal::red_t &)
 rgb8 (const mln::literal::blue_t &)
 rgb8 (const mln::literal::green_t &)
 rgb8 (const mln::literal::brown_t &)
 rgb8 (const mln::literal::lime_t &)
 rgb8 (const mln::literal::orange_t &)
 rgb8 (const mln::literal::pink_t &)
 rgb8 (const mln::literal::purple_t &)
 rgb8 (const mln::literal::teal_t &)
 rgb8 (const mln::literal::violet_t &)
 rgb8 (const mln::literal::cyan_t &)
 rgb8 (const mln::literal::magenta_t &)
 rgb8 (const mln::literal::yellow_t &)
 rgb8 (const mln::literal::olive_t &)
C & handle_ ()
 operator algebra::vec< 3, float > () const
 operator algebra::vec< 3, int > () const
const C & to_enc () const
to_equiv () const
to_interop () const
Access to red/green/blue component.
int_u< n > red () const
int_u< n > & red ()
int_u< n > green () const
int_u< n > & green ()
int_u< n > blue () const
int_u< n > & blue ()
int_u< n > comp (unsigned k) const
int_u< n > & comp (unsigned k)

Static Public Attributes

static const rgb< n > zero

Protected Attributes

enc v_

Public Types

typedef int_u< n > blue_t
typedef Value< void > category
typedef C enc
typedef V equiv
typedef rgb< n > exact_t
typedef int_u< n > green_t
typedef N interop
typedef int_u< n > red_t

Detailed Description

Color class for red-green-blue where every component is 8-bit encoded.

Definition at line 8 of file rgb8.dox.

Constructor & Destructor Documentation

mln::value::rgb8::rgb8 ( )

Constructor without argument.

mln::value::rgb8::rgb8 ( int  r,
int  g,
int  b 
)

Constructor from component values.

mln::value::rgb8::rgb8 ( const algebra::vec< 3, int > &  rhs)

Constructor from a algebra::vec.

mln::value::rgb8::rgb8 ( const algebra::vec< 3, unsigned > &  rhs)

Constructor from a algebra::vec.

mln::value::rgb8::rgb8 ( const algebra::vec< 3, int_u< n > > &  rhs)

Constructor from a algebra::vec.

mln::value::rgb8::rgb8 ( const algebra::vec< 3, float > &  rhs)

Constructor from a algebra::vec.

mln::value::rgb8::rgb8 ( const mln::literal::white_t )

Constructor from literal. rgb8(255,255,255)

mln::value::rgb8::rgb8 ( const mln::literal::black_t )

Constructor from literal. rgb8(0,0,0)

mln::value::rgb8::rgb8 ( const mln::literal::light_gray_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::medium_gray_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::dark_gray_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::red_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::blue_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::green_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::brown_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::lime_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::orange_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::pink_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::purple_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::teal_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::violet_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::cyan_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::magenta_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::yellow_t )

Constructor from literal.

mln::value::rgb8::rgb8 ( const mln::literal::olive_t )

Constructor from literal.

Member Function Documentation

int_u<n> mln::value::rgb< n >::blue ( ) const
inlineinherited

Definition at line 228 of file value/rgb.hh.

int_u<n>& mln::value::rgb< n >::blue ( )
inlineinherited

Definition at line 229 of file value/rgb.hh.

int_u<n> mln::value::rgb< n >::comp ( unsigned  k) const
inlineinherited

Definition at line 231 of file value/rgb.hh.

int_u<n>& mln::value::rgb< n >::comp ( unsigned  k)
inlineinherited

Definition at line 232 of file value/rgb.hh.

int_u<n> mln::value::rgb< n >::green ( ) const
inlineinherited

Definition at line 225 of file value/rgb.hh.

int_u<n>& mln::value::rgb< n >::green ( )
inlineinherited

Definition at line 226 of file value/rgb.hh.

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.

mln::value::rgb< n >::operator algebra::vec< 3, float > ( ) const
inlineinherited

Definition at line 250 of file value/rgb.hh.

mln::value::rgb< n >::operator algebra::vec< 3, int > ( ) const
inlineinherited

Definition at line 248 of file value/rgb.hh.

int_u<n> mln::value::rgb< n >::red ( ) const
inlineinherited

Definition at line 222 of file value/rgb.hh.

int_u<n>& mln::value::rgb< n >::red ( )
inlineinherited

Definition at line 223 of file value/rgb.hh.

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.

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.

const rgb<n> mln::value::rgb< n >::zero
staticinherited

Zero value.

Definition at line 281 of file value/rgb.hh.

Member Typedef Documentation

typedef int_u<n> mln::value::rgb< n >::blue_t
inherited

Definition at line 218 of file value/rgb.hh.

typedef Value<void> mln::Value< rgb< n > >::category
inherited

Definition at line 62 of file core/concept/value.hh.

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

Encoding associated type.

Definition at line 65 of file value_like.hh.

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

Equivalent associated type.

Definition at line 62 of file value_like.hh.

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

Definition at line 105 of file object.hh.

typedef int_u<n> mln::value::rgb< n >::green_t
inherited

Definition at line 217 of file value/rgb.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.

typedef int_u<n> mln::value::rgb< n >::red_t
inherited

Definition at line 216 of file value/rgb.hh.