latest version v1.9 - last update 10 Apr 2010 |
Split image in an oponent colour system. More...
#include <ltiSplitImageToOCP.h>
Public Member Functions | |
virtual const char * | getTypename () const |
virtual functor * | clone () 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 |
Split image in an oponent colour system.
The three opponent channels are defined here as follows:
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.
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.
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