lti::splitImageTorgI Class Reference
[Color Analysis]
Split image in its chromaticity channels.
More...
#include <ltiSplitImageTorgI.h>
List of all members.
Public Member Functions |
virtual const char * | getTypeName () const |
virtual functor * | clone () const |
virtual bool | apply (const image &img, channel &r, channel &g, channel &I) const |
virtual bool | apply (const image &img, channel8 &r, channel8 &g, channel8 &I) const |
virtual bool | apply (const rgbPixel &pixel, float &r, float &g, float &I) const |
virtual bool | apply (const rgbPixel &pixel, ubyte &r, ubyte &g, ubyte &I) const |
bool | getR (const image &img, channel &r) const |
bool | getR (const image &img, channel8 &r) const |
bool | getG (const image &img, channel &g) const |
bool | getG (const image &img, channel8 &g) const |
bool | getIntensity (const image &img, channel &I) const |
bool | getIntensity (const image &img, channel8 &I) 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 chromaticity channels.
The chromaticity channels are defined as follows:
- intensity channel
- chromacity red
- chromacity green
You can get all channels at the same time using apply() or just get one using the shortcut methods getR(), getG() or getIntensity().
Member Function Documentation
virtual bool lti::splitImageTorgI::apply |
( |
const rgbPixel & |
pixel, |
|
|
ubyte & |
r, |
|
|
ubyte & |
g, |
|
|
ubyte & |
I | |
|
) |
| | const [virtual] |
split the pixel in chromacity values r and g and intensity value.
The values of each pixel will be between 0 and 255
- Parameters:
-
| pixel | the pixel to be splitted |
| r | the chromacity value |
| g | the chromacity value |
| I | the intensity value |
Implements lti::splitImage.
virtual bool lti::splitImageTorgI::apply |
( |
const rgbPixel & |
pixel, |
|
|
float & |
r, |
|
|
float & |
g, |
|
|
float & |
I | |
|
) |
| | const [virtual] |
split the pixel in chromacity values r and g and intensity value.
The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
| pixel | the pixel to be splitted |
| r | the chromacity value |
| g | the chromacity value |
| I | the intensity value |
Implements lti::splitImage.
split the image in chromacity channels r and g and intensity channel.
The values of each pixel will be between 0 and 255
- Parameters:
-
Implements lti::splitImage.
split the image in chromacity channels r and g and intensity channel.
The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
Implements lti::splitImage.
virtual functor* lti::splitImageTorgI::clone |
( |
|
) |
const [virtual] |
virtual bool lti::splitImageTorgI::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::splitImageTorgI::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::splitImageTorgI::getG |
( |
const image & |
img, |
|
|
channel8 & |
g | |
|
) |
| | const |
shortcut to get the green channel only The values of each pixel will be between 0 and 255
- Parameters:
-
bool lti::splitImageTorgI::getG |
( |
const image & |
img, |
|
|
channel & |
g | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
bool lti::splitImageTorgI::getIntensity |
( |
const image & |
img, |
|
|
channel8 & |
I | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0 and 255
- Parameters:
-
bool lti::splitImageTorgI::getIntensity |
( |
const image & |
img, |
|
|
channel & |
I | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0.0f and 1.0f
- Parameters:
-
bool lti::splitImageTorgI::getR |
( |
const image & |
img, |
|
|
channel8 & |
r | |
|
) |
| | const |
shortcut to get the red channel only The values of each pixel will be between 0 and 255
- Parameters:
-
bool lti::splitImageTorgI::getR |
( |
const image & |
img, |
|
|
channel & |
r | |
|
) |
| | 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::splitImageTorgI::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::splitImageTorgI::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::splitImageTorgI::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::splitImageTorgI::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::splitImageTorgI::getTypeName |
( |
|
) |
const [virtual] |
The documentation for this class was generated from the following file: