cvr::splitImageToRGB Class Reference
[Color Analysis]
Split
image into its Red - Green - Blue channels.
More...
#include <cvrSplitImageToRGB.h>
List of all members.
|
Public Member Functions |
| splitImageToRGB () |
| splitImageToRGB (const splitImageToRGB &other) |
virtual | ~splitImageToRGB () |
splitImageToRGB & | copy (const splitImageToRGB &other) |
splitImageToRGB & | operator= (const splitImageToRGB &other) |
virtual const std::string & | name () const |
virtual splitImageToRGB * | clone () const |
virtual splitImageToRGB * | newInstance () const |
const parameters & | getParameters () const |
virtual bool | apply (const matrix< image::value_type > &img, matrix< channel::value_type > &red, matrix< channel::value_type > &green, matrix< channel::value_type > &blue) const |
virtual bool | apply (const matrix< image::value_type > &img, matrix< channel::value_type > &red, matrix< channel::value_type > &green, matrix< channel::value_type > &blue, matrix< channel::value_type > &alpha) const |
virtual bool | apply (const matrix< image::value_type > &img, matrix< channel8::value_type > &red, matrix< channel8::value_type > &green, matrix< channel8::value_type > &blue) const |
virtual bool | apply (const matrix< image::value_type > &img, matrix< channel8::value_type > &red, matrix< channel8::value_type > &green, matrix< channel8::value_type > &blue, matrix< channel8::value_type > &alpha) const |
virtual bool | apply (const rgbaPixel &pixel, float &red, float &green, float &blue) const |
virtual bool | apply (const rgbaPixel &pixel, ubyte &red, ubyte &green, ubyte &blue) const |
bool | extractRed (const matrix< image::value_type > &img, matrix< channel::value_type > &red) const |
bool | extractRed (const matrix< image::value_type > &img, matrix< channel8::value_type > &red) const |
bool | extractGreen (const matrix< image::value_type > &img, matrix< channel::value_type > &green) const |
bool | extractGreen (const matrix< image::value_type > &img, matrix< channel8::value_type > &green) const |
bool | extractBlue (const matrix< image::value_type > &img, matrix< channel::value_type > &blue) const |
bool | extractBlue (const matrix< image::value_type > &img, matrix< channel8::value_type > &blue) const |
virtual bool | extractFirst (const matrix< image::value_type > &img, matrix< channel::value_type > &c1) const |
virtual bool | extractFirst (const matrix< image::value_type > &img, matrix< channel8::value_type > &c1) const |
virtual bool | extractSecond (const matrix< image::value_type > &img, matrix< channel::value_type > &c2) const |
virtual bool | extractSecond (const matrix< image::value_type > &img, matrix< channel8::value_type > &c2) const |
virtual bool | extractThird (const matrix< image::value_type > &img, matrix< channel::value_type > &c3) const |
virtual bool | extractThird (const matrix< image::value_type > &img, matrix< channel8::value_type > &c3) const |
Detailed Description
Split
image into its Red - Green - Blue channels.
You can split all the channels at the same time (with apply) or get just one channel using the shortcut functions getRed(), getGreen() or getBlue().
- See also:
- cvr::mergeRGBToImage
Constructor & Destructor Documentation
cvr::splitImageToRGB::splitImageToRGB |
( |
|
) |
|
virtual cvr::splitImageToRGB::~splitImageToRGB |
( |
|
) |
[virtual] |
Member Function Documentation
virtual bool cvr::splitImageToRGB::apply |
( |
const rgbaPixel & |
pixel, |
|
|
ubyte & |
red, |
|
|
ubyte & |
green, |
|
|
ubyte & |
blue | |
|
) |
| | const [virtual] |
split the pixel in red green and blue values.
The values of each pixel will be between 0 and 255
- Parameters:
-
| pixel | the pixel to be splitted |
| red | the red value |
| green | the green value |
| blue | the blue value |
Implements cvr::splitImage.
virtual bool cvr::splitImageToRGB::apply |
( |
const rgbaPixel & |
pixel, |
|
|
float & |
red, |
|
|
float & |
green, |
|
|
float & |
blue | |
|
) |
| | const [virtual] |
split the pixel in red green and blue values.
The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
| pixel | the pixel to be splitted |
| red | the red value |
| green | the green value |
| blue | the blue value |
- Returns:
- true if successful, false otherwise.
Implements cvr::splitImage.
split the image in red green and blue channels.
The values of each pixel will be between 0 and 255
- Parameters:
-
- Returns:
- true if successful, false otherwise.
split the image in red green and blue channels.
The values of each pixel will be between 0 and 255
- Parameters:
-
- Returns:
- true if successful, false otherwise.
Implements cvr::splitImage.
split the image in red green and blue channels.
The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
- Returns:
- true if successful, false otherwise.
Split the image in red green and blue channels.
The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
- Returns:
- true if successful, false otherwise.
Implements cvr::splitImage.
shortcut to extract the red channel only The values of each pixel will be between 0 and 255
- Parameters:
-
shortcut to extract the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
Returns the first of the three channels into which the image is split.
If you need only one channel, this might be faster than calling apply().
- Parameters:
-
Reimplemented from cvr::splitImage.
Returns the first of the three channels into which the image is split.
If you need only one channel, this might be faster than calling apply().
- Parameters:
-
Reimplemented from cvr::splitImage.
shortcut to extract the green channel only The values of each pixel will be between 0 and 255
- Parameters:
-
shortcut to extract the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
shortcut to extract the red channel only The values of each pixel will be between 0 and 255
- Parameters:
-
shortcut to get the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
Returns the second of the three channels into which the image is split.
If you need only one channel, this might be faster than calling apply().
- Parameters:
-
Reimplemented from cvr::splitImage.
Returns the second of the three channels into which the image is split.
If you need only one channel, this might be faster than calling apply().
- Parameters:
-
Reimplemented from cvr::splitImage.
Returns the third of the three channels into which the image is split.
If you need only one channel, this might be faster than calling apply().
- Parameters:
-
Reimplemented from cvr::splitImage.
Returns the third of the three channels into which the image is split.
If you need only one channel, this might be faster than calling apply().
- Parameters:
-
Reimplemented from cvr::splitImage.
const parameters& cvr::splitImageToRGB::getParameters |
( |
|
) |
const |
virtual const std::string& cvr::splitImageToRGB::name |
( |
|
) |
const [virtual] |
virtual splitImageToRGB* cvr::splitImageToRGB::newInstance |
( |
|
) |
const [virtual] |
Alias for copy member.
- Parameters:
-
- Returns:
- a reference to this functor object
The documentation for this class was generated from the following file: