CCanonicalColorConverter Class Reference

#include <colorconv.h>

Inheritance diagram for CCanonicalColorConverter:

Inheritance graph
List of all members.

Detailed Description

Simple color converter which uses weighted average:

\[ I = 0.3 R + 0.59 G + 0.11 B \]


Public Member Functions

virtual int Convert (unsigned char *dst, const unsigned char *src, int width, int height)
virtual CColorConverterClone ()


Member Function Documentation

CColorConverter * Clone  )  [virtual]
 

Create exact copy of this object.

Returns:
Pointer to new object.

Implements CColorConverter.

int Convert unsigned char *  dst,
const unsigned char *  src,
int  width,
int  height
[virtual]
 

Converts color src image into luminance dst image.

The src image is stored in the array row-wise, each succesive triplets of bytes correspond to R,G,B respectively. The converted image shall be stored in dst in the same row-wise way, 1 Byte per pixel.

Parameters:
dst Destination image.
dst Source image.
width Width of the source image.
height Height of the source image.

Implements CColorConverter.


Generated on Tue Jul 11 11:22:31 2006 for ImgFusion by  doxygen 1.4.6