lti::splitImageToRGB Class Reference
[Color Analysis]
Split image in its Red - Green - Blue channels.
More...
#include <ltiSplitImageToRGB.h>
List of all members.
Public Member Functions |
virtual const char * | getTypeName () const |
virtual functor * | clone () const |
virtual bool | apply (const image &img, channel &red, channel &green, channel &blue) const |
virtual bool | apply (const image &img, channel &red, channel &green, channel &blue, channel &alpha) const |
virtual bool | apply (const image &img, channel8 &red, channel8 &green, channel8 &blue) const |
virtual bool | apply (const image &img, channel8 &red, channel8 &green, channel8 &blue, channel8 &alpha) const |
virtual bool | apply (const rgbPixel &pixel, float &red, float &green, float &blue) const |
virtual bool | apply (const rgbPixel &pixel, ubyte &red, ubyte &green, ubyte &blue) const |
bool | getRed (const image &img, channel &red) const |
bool | getRed (const image &img, channel8 &red) const |
bool | getGreen (const image &img, channel &green) const |
bool | getGreen (const image &img, channel8 &green) const |
bool | getBlue (const image &img, channel &blue) const |
bool | getBlue (const image &img, channel8 &blue) const |
virtual bool | getFirst (const image &img, channel &c1) const |
virtual bool | getFirst (const image &img, channel8 &c1) const |
virtual bool | getSecond (const image &img, channel &c2) const |
virtual bool | getSecond (const image &img, channel8 &c2) const |
virtual bool | getThird (const image &img, channel &c3) const |
virtual bool | getThird (const image &img, channel8 &c3) const |
Detailed Description
Split image in 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:
- lti::mergeRGBToImage
Member Function Documentation
virtual bool lti::splitImageToRGB::apply |
( |
const rgbPixel & |
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 lti::splitImage.
virtual bool lti::splitImageToRGB::apply |
( |
const rgbPixel & |
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 lti::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 lti::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 lti::splitImage.
virtual functor* lti::splitImageToRGB::clone |
( |
|
) |
const [virtual] |
bool lti::splitImageToRGB::getBlue |
( |
const image & |
img, |
|
|
channel8 & |
blue | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0 and 255
- Parameters:
-
bool lti::splitImageToRGB::getBlue |
( |
const image & |
img, |
|
|
channel & |
blue | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
virtual bool lti::splitImageToRGB::getFirst |
( |
const image & |
img, |
|
|
channel8 & |
c1 | |
|
) |
| | const [virtual] |
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 lti::splitImage.
virtual bool lti::splitImageToRGB::getFirst |
( |
const image & |
img, |
|
|
channel & |
c1 | |
|
) |
| | const [virtual] |
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 lti::splitImage.
bool lti::splitImageToRGB::getGreen |
( |
const image & |
img, |
|
|
channel8 & |
green | |
|
) |
| | const |
shortcut to get the green channel only The values of each pixel will be between 0 and 255
- Parameters:
-
bool lti::splitImageToRGB::getGreen |
( |
const image & |
img, |
|
|
channel & |
green | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
bool lti::splitImageToRGB::getRed |
( |
const image & |
img, |
|
|
channel8 & |
red | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0 and 255
- Parameters:
-
bool lti::splitImageToRGB::getRed |
( |
const image & |
img, |
|
|
channel & |
red | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
virtual bool lti::splitImageToRGB::getSecond |
( |
const image & |
img, |
|
|
channel8 & |
c2 | |
|
) |
| | const [virtual] |
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 lti::splitImage.
virtual bool lti::splitImageToRGB::getSecond |
( |
const image & |
img, |
|
|
channel & |
c2 | |
|
) |
| | const [virtual] |
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 lti::splitImage.
virtual bool lti::splitImageToRGB::getThird |
( |
const image & |
img, |
|
|
channel8 & |
c3 | |
|
) |
| | const [virtual] |
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 lti::splitImage.
virtual bool lti::splitImageToRGB::getThird |
( |
const image & |
img, |
|
|
channel & |
c3 | |
|
) |
| | const [virtual] |
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 lti::splitImage.
virtual const char* lti::splitImageToRGB::getTypeName |
( |
|
) |
const [virtual] |
The documentation for this class was generated from the following file: