LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::splitImageToOCP Class Reference
[Color Analysis]

Split image in an oponent colour system. More...

#include <ltiSplitImageToOCP.h>

Inheritance diagram for lti::splitImageToOCP:
Inheritance graph
[legend]
Collaboration diagram for lti::splitImageToOCP:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * getTypename () const
virtual functorclone () const
virtual bool apply (const image &img, channel &c1, channel &c2, channel &c3) const
virtual bool apply (const image &img, channel8 &c1, channel8 &c2, channel8 &c3) const
virtual bool apply (const rgbPixel &pixel, float &c1, float &c2, float &c3) const
virtual bool apply (const rgbPixel &pixel, ubyte &c1, ubyte &c2, ubyte &c3) const

Detailed Description

Split image in an oponent colour system.

The three opponent channels are defined here as follows:

\[ \begin{pmatrix}c1\\c2\\c3\end{pmatrix} = \begin{pmatrix} 0.5 & -0.5 & 0.0 \\ -0.25 & -0.25 & 0.5 \\ 0.33 & 0.33 & 0.33\end{pmatrix} \begin{pmatrix}R\\G\\B\end{pmatrix} \]


Member Function Documentation

virtual bool lti::splitImageToOCP::apply ( const rgbPixel pixel,
ubyte c1,
ubyte c2,
ubyte c3 
) const [virtual]

on-copy

Implements lti::splitImage.

virtual bool lti::splitImageToOCP::apply ( const rgbPixel pixel,
float &  c1,
float &  c2,
float &  c3 
) const [virtual]

on-copy

Implements lti::splitImage.

virtual bool lti::splitImageToOCP::apply ( const image img,
channel8 c1,
channel8 c2,
channel8 c3 
) const [virtual]

Get the three opponent color channels.

Parameters:
img input image to be split.
c1 Red - Green channel
c2 Blue - Yellow channel
c3 Intensity channel

The original value range for the output channels should be between -127.5 and 127.5. The ubyte type cannot represent this range, so the first two channels are scaled and shifted by 127.5 to reach the desired output range from 0 to 255

Implements lti::splitImage.

virtual bool lti::splitImageToOCP::apply ( const image img,
channel c1,
channel c2,
channel c3 
) const [virtual]

Get the three opponent color channels.

Parameters:
img input image to be split.
c1 Red - Green channel
c2 Blue - Yellow channel
c3 Intensity channel

Implements lti::splitImage.

virtual functor* lti::splitImageToOCP::clone (  )  const [virtual]

returns a pointer to a clone of the functor

Implements lti::functor.

virtual const char* lti::splitImageToOCP::getTypename (  )  const [virtual]

returns the name of this type


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

Generated on Sat Apr 10 15:27:54 2010 for LTI-Lib by Doxygen 1.6.1