SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
slip::RGBtoL< InType, OutType > Struct Template Reference

Converts a RGB color to a luminance value. More...

#include <color_spaces.hpp>

Public Member Functions

OutType operator() (const slip::Color< InType > &RGB) const
 

Detailed Description

template<typename InType, typename OutType>
struct slip::RGBtoL< InType, OutType >

Converts a RGB color to a luminance value.

Author
Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
Date
2006/09/13
Since
1.0.0
Version
0.0.1
Parameters
RGBA const slip::Color<InType> reference.
Returns
An OutType value corresponding to the luminance.
L = 0.3 * R + 0.59 * G + 0.11 * B

Definition at line 102 of file color_spaces.hpp.

Member Function Documentation

template<typename InType , typename OutType >
OutType slip::RGBtoL< InType, OutType >::operator() ( const slip::Color< InType > &  RGB) const
inline

Definition at line 104 of file color_spaces.hpp.


The documentation for this struct was generated from the following file: