Public Member Functions

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

List of all members.

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:
n defines 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] v the rgb8 value to convert.

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

Parameters:
n defines the output quantification used for the transformation.

Definition at line 83 of file rgb8_to_rgbn.hh.

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