last update 20 Sep 2009 |
#include <cvrMergeImage.h>
Public Member Functions | |
mergeImage () | |
virtual | ~mergeImage () |
virtual mergeImage * | clone () const =0 |
virtual mergeImage * | newInstance () const =0 |
virtual bool | apply (const matrix< float > &c1, const matrix< float > &c2, const matrix< float > &c3, image &img) const =0 |
virtual bool | apply (const matrix< ubyte > &c1, const matrix< ubyte > &c2, const matrix< ubyte > &c3, image &img) const =0 |
virtual bool | apply (const float &c1, const float &c2, const float &c3, rgbaPixel &pixel) const =0 |
virtual bool | apply (const ubyte &c1, const ubyte &c2, const ubyte &c3, rgbaPixel &pixel) const =0 |
These functors merge color-channels to a color image.
This is a virtual class, so you cannot instantiate it.
cvr::mergeImage::mergeImage | ( | ) |
default constructor
virtual cvr::mergeImage::~mergeImage | ( | ) | [virtual] |
destructor
virtual bool cvr::mergeImage::apply | ( | const ubyte & | c1, | |
const ubyte & | c2, | |||
const ubyte & | c3, | |||
rgbaPixel & | pixel | |||
) | const [pure virtual] |
on-copy operator for 8-bit values
Implemented in cvr::mergeHSIToImage, cvr::mergeRGBToImage, cvr::mergeYCbCrToImage, cvr::mergeYIQToImage, cvr::mergeYPbPrToImage, and cvr::mergeYUVToImage.
virtual bool cvr::mergeImage::apply | ( | const float & | c1, | |
const float & | c2, | |||
const float & | c3, | |||
rgbaPixel & | pixel | |||
) | const [pure virtual] |
on-copy operator for 32-bit floating point values
Implemented in cvr::mergeHSIToImage, cvr::mergeRGBToImage, cvr::mergeYCbCrToImage, cvr::mergeYIQToImage, cvr::mergeYPbPrToImage, and cvr::mergeYUVToImage.
virtual bool cvr::mergeImage::apply | ( | const matrix< ubyte > & | c1, | |
const matrix< ubyte > & | c2, | |||
const matrix< ubyte > & | c3, | |||
image & | img | |||
) | const [pure virtual] |
on-copy operator for 8-bit channels
Implemented in cvr::mergeHSIToImage, cvr::mergeRGBToImage, cvr::mergeYCbCrToImage, cvr::mergeYIQToImage, cvr::mergeYPbPrToImage, and cvr::mergeYUVToImage.
virtual bool cvr::mergeImage::apply | ( | const matrix< float > & | c1, | |
const matrix< float > & | c2, | |||
const matrix< float > & | c3, | |||
image & | img | |||
) | const [pure virtual] |
on-copy operator for 32-bit "floating-point" channels
Implemented in cvr::mergeHSIToImage, cvr::mergeRGBToImage, cvr::mergeYCbCrToImage, cvr::mergeYIQToImage, cvr::mergeYPbPrToImage, and cvr::mergeYUVToImage.
virtual mergeImage* cvr::mergeImage::clone | ( | ) | const [pure virtual] |
returns a pointer to a clone of the functor.
Implements cvr::functor.
Implemented in cvr::mergeHSIToImage, cvr::mergeRGBToImage, cvr::mergeYCbCrToImage, cvr::mergeYIQToImage, cvr::mergeYPbPrToImage, and cvr::mergeYUVToImage.
virtual mergeImage* cvr::mergeImage::newInstance | ( | ) | const [pure virtual] |
returns a pointer to a new instance of the functor.
Implements cvr::functor.
Implemented in cvr::mergeHSIToImage, cvr::mergeRGBToImage, cvr::mergeYCbCrToImage, cvr::mergeYIQToImage, cvr::mergeYPbPrToImage, and cvr::mergeYUVToImage.