Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::fun::v2v::rgb8_to_rgbn< n > Struct Template Reference

Convert a rgb8 value to a rgn, n < 8. More...

#include <rgb8_to_rgbn.hh>

Inheritance diagram for mln::fun::v2v::rgb8_to_rgbn< n >:
Inheritance graph

Public Member Functions

result operator() (const argument &c) const
 Convert a rgb8 value to a rgn, n < 8.
 

Detailed Description

template<unsigned n>
struct mln::fun::v2v::rgb8_to_rgbn< n >

Convert a rgb8 value to a rgn, n < 8.

Parameters
ndefines the output quantification used for the transformation.

Definition at line 56 of file rgb8_to_rgbn.hh.

Member Function Documentation

template<unsigned n>
rgb8_to_rgbn< n >::result mln::fun::v2v::rgb8_to_rgbn< n >::operator() ( const argument c) const

Convert a rgb8 value to a rgn, n < 8.

Parameters
[in]vthe rgb8 value to convert.

Conversion is done by computing the size by which we divide each rgb component.

Parameters
ndefines the output quantification used for the transformation.

Definition at line 83 of file rgb8_to_rgbn.hh.

References mln::value::rgb< n >::red().