latest version v1.9 - last update 10 Apr 2010 |
Merge RGB channels. More...
#include <ltiMergeRGBToImage.h>
Public Member Functions | |
virtual const char * | getTypeName () const |
virtual functor * | clone () const |
virtual bool | apply (const matrix< float > &red, const matrix< float > &green, const matrix< float > &blue, image &img) const |
virtual bool | apply (const channel8 &red, const channel8 &green, const channel8 &blue, image &img) const |
bool | apply (const matrix< float > &red, const matrix< float > &green, const matrix< float > &blue, const matrix< float > &alpha, image &img) const |
bool | apply (const channel8 &red, const channel8 &green, const channel8 &blue, const channel8 &alpha, image &img) const |
virtual bool | apply (const float &red, const float &green, const float &blue, rgbPixel &pixel) const |
virtual bool | apply (const ubyte &red, const ubyte &green, const ubyte &blue, rgbPixel &pixel) const |
Merge RGB channels.
Merge the three given channels in a color image.
virtual bool lti::mergeRGBToImage::apply | ( | const ubyte & | red, | |
const ubyte & | green, | |||
const ubyte & | blue, | |||
rgbPixel & | pixel | |||
) | const [virtual] |
merge the values red, green and blue to a pixel
red | the red value | |
green | the green value | |
blue | the blue value | |
pixel | the merged pixel |
Implements lti::mergeImage.
virtual bool lti::mergeRGBToImage::apply | ( | const float & | red, | |
const float & | green, | |||
const float & | blue, | |||
rgbPixel & | pixel | |||
) | const [virtual] |
merge the values red, green and blue to a pixel.
red | the red value | |
green | the green value | |
blue | the blue value | |
pixel | the pixel to be splitted |
Implements lti::mergeImage.
virtual functor* lti::mergeRGBToImage::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
virtual const char* lti::mergeRGBToImage::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::mergeImage.