Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

RGB2Intensity Class Template Reference

Pixel functor for computation of RGB2Intensity. More...

List of all members.

Public Methods

 RGB2Intensity (HxTagList &)
 Constructor : get parameters from taglist. More...

DstValT doIt (const SrcValT &x)
 Actual operation. More...


Static Public Methods

HxString className ()
 The name : "RGB2Intensity". More...


Detailed Description

template<class DstValT, class SrcValT>
class RGB2Intensity< DstValT, SrcValT >

Pixel functor for computation of RGB2Intensity.


Constructor & Destructor Documentation

template<class DstValT, class SrcValT>
RGB2Intensity< DstValT, SrcValT >::RGB2Intensity HxTagList   tl
 

Constructor : get parameters from taglist.

00035 {
00036 }


Member Function Documentation

template<class DstValT, class SrcValT>
DstValT RGB2Intensity< DstValT, SrcValT >::doIt const SrcValT &    x [inline]
 

Actual operation.

00041 {   
00042     return 0.212671*x.x() + 0.715160*x.y() + 0.072169*x.z(); 
00043 }

template<class DstValT, class SrcValT>
HxString RGB2Intensity< DstValT, SrcValT >::className   [static]
 

The name : "RGB2Intensity".

00048 {
00049     return HxString("RGB2Intensity");
00050 }


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 13:59:38 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001