CVR-Lib last update 20 Sep 2009

cvr::mergeRGBToImage Class Reference
[Color Analysis]

Merge RGB channels. More...

#include <cvrMergeRGBToImage.h>

Inheritance diagram for cvr::mergeRGBToImage:

Inheritance graph
[legend]
Collaboration diagram for cvr::mergeRGBToImage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const std::string & name () const
virtual mergeRGBToImageclone () const
virtual mergeRGBToImagenewInstance () const
virtual bool apply (const matrix< float > &red, const matrix< float > &green, const matrix< float > &blue, image &img) const
virtual bool apply (const matrix< ubyte > &red, const matrix< ubyte > &green, const matrix< ubyte > &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 matrix< ubyte > &red, const matrix< ubyte > &green, const matrix< ubyte > &blue, const matrix< ubyte > &alpha, image &img) const
virtual bool apply (const float &red, const float &green, const float &blue, rgbaPixel &pixel) const
virtual bool apply (const ubyte &red, const ubyte &green, const ubyte &blue, rgbaPixel &pixel) const


Detailed Description

Merge RGB channels.

Merge the three given channels in a color image.

See also:
splitImageToRGB

Member Function Documentation

virtual bool cvr::mergeRGBToImage::apply ( const ubyte red,
const ubyte green,
const ubyte blue,
rgbaPixel pixel 
) const [virtual]

merge the values red, green and blue to a pixel

Parameters:
red the red value
green the green value
blue the blue value
pixel the merged pixel

Implements cvr::mergeImage.

virtual bool cvr::mergeRGBToImage::apply ( const float &  red,
const float &  green,
const float &  blue,
rgbaPixel pixel 
) const [virtual]

merge the values red, green and blue to a pixel.

Parameters:
red the red value
green the green value
blue the blue value
pixel the pixel to be splitted

Implements cvr::mergeImage.

bool cvr::mergeRGBToImage::apply ( const matrix< ubyte > &  red,
const matrix< ubyte > &  green,
const matrix< ubyte > &  blue,
const matrix< ubyte > &  alpha,
image img 
) const

Merge the channels red, green, blue and the dummy (or alpha) to an image.

Parameters:
red the red channel
green the green channel
blue the blue channel
alpha the alpha or dummy channel
img the merged image

bool cvr::mergeRGBToImage::apply ( const matrix< float > &  red,
const matrix< float > &  green,
const matrix< float > &  blue,
const matrix< float > &  alpha,
image img 
) const

Merge the channels red, green, blue and the dummy (or alpha) to an image.

Parameters:
red the red channel
green the green channel
blue the blue channel
alpha the alpha or dummy channel
img the merged image

virtual bool cvr::mergeRGBToImage::apply ( const matrix< ubyte > &  red,
const matrix< ubyte > &  green,
const matrix< ubyte > &  blue,
image img 
) const [virtual]

merge the channels red, green and blue to an image

Parameters:
red the red channel
green the green channel
blue the blue channel
img the merged image

Implements cvr::mergeImage.

virtual bool cvr::mergeRGBToImage::apply ( const matrix< float > &  red,
const matrix< float > &  green,
const matrix< float > &  blue,
image img 
) const [virtual]

merge the channels red, green and blue to an image

Parameters:
red the red channel
green the green channel
blue the blue channel
img the merged image

Implements cvr::mergeImage.

virtual mergeRGBToImage* cvr::mergeRGBToImage::clone (  )  const [virtual]

Returns a pointer to a clone of the parameters.

Implements cvr::mergeImage.

virtual const std::string& cvr::mergeRGBToImage::name (  )  const [virtual]

Returns the name of this type.

Implements cvr::functor.

virtual mergeRGBToImage* cvr::mergeRGBToImage::newInstance (  )  const [virtual]

Returns a pointer to a new instance of this functor.

Implements cvr::mergeImage.


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

Generated on Sun Sep 20 22:08:50 2009 for CVR-Lib by Doxygen 1.5.8