latest version v1.9 - last update 10 Apr 2010 |
Parent for all classes that split image into differen color spaces components (color channels). More...
#include <ltiSplitImage.h>
Public Member Functions | |
splitImage () | |
virtual | ~splitImage () |
splitImage & | copy (const splitImage &other) |
splitImage & | operator= (const splitImage &other) |
virtual bool | apply (const image &img, channel &c1, channel &c2, channel &c3) const =0 |
virtual bool | apply (const image &img, channel8 &c1, channel8 &c2, channel8 &c3) const =0 |
virtual bool | apply (const rgbPixel &pixel, float &c1, float &c2, float &c3) const =0 |
virtual bool | apply (const rgbPixel &pixel, ubyte &c1, ubyte &c2, ubyte &c3) const =0 |
virtual const char * | getTypeName () 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 |
Protected Member Functions | |
virtual int | maximum (const int a, const int b, const int c) const |
virtual int | minimum (const int a, const int b, const int c) const |
Parent for all classes that split image into differen color spaces components (color channels).
#include "ltiSplitImage.h"
Split color image into color-channels.
lti::splitImage::splitImage | ( | ) | [inline] |
default constructor
virtual lti::splitImage::~splitImage | ( | ) | [inline, virtual] |
destructor
virtual bool lti::splitImage::apply | ( | const rgbPixel & | pixel, | |
ubyte & | c1, | |||
ubyte & | c2, | |||
ubyte & | c3 | |||
) | const [pure virtual] |
on-copy operator for 8-bit values
Implemented in lti::splitImageToCIELuv, lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHLS, lti::splitImageToHSI, lti::splitImageToHSV, lti::splitImageToOCP, lti::splitImageToRGB, lti::splitImageTorgI, lti::splitImageToxyY, lti::splitImageToXYZ, lti::splitImageToYCbCr, lti::splitImageToYIQ, lti::splitImageToYPbPr, and lti::splitImageToYUV.
virtual bool lti::splitImage::apply | ( | const rgbPixel & | pixel, | |
float & | c1, | |||
float & | c2, | |||
float & | c3 | |||
) | const [pure virtual] |
on-copy operator for 32-bit floating point values
Implemented in lti::splitImageToCIELuv, lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHLS, lti::splitImageToHSI, lti::splitImageToHSV, lti::splitImageToOCP, lti::splitImageToRGB, lti::splitImageTorgI, lti::splitImageToxyY, lti::splitImageToXYZ, lti::splitImageToYCbCr, lti::splitImageToYIQ, lti::splitImageToYPbPr, and lti::splitImageToYUV.
virtual bool lti::splitImage::apply | ( | const image & | img, | |
channel8 & | c1, | |||
channel8 & | c2, | |||
channel8 & | c3 | |||
) | const [pure virtual] |
on-copy operator for 8-bit channels
Implemented in lti::splitImageToCIELuv, lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHLS, lti::splitImageToHSI, lti::splitImageToHSV, lti::splitImageToOCP, lti::splitImageToRGB, lti::splitImageTorgI, lti::splitImageToxyY, lti::splitImageToXYZ, lti::splitImageToYCbCr, lti::splitImageToYIQ, lti::splitImageToYPbPr, and lti::splitImageToYUV.
virtual bool lti::splitImage::apply | ( | const image & | img, | |
channel & | c1, | |||
channel & | c2, | |||
channel & | c3 | |||
) | const [pure virtual] |
on-copy operator for 32-bit "floating point" channels
Implemented in lti::splitImageToCIELuv, lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHLS, lti::splitImageToHSI, lti::splitImageToHSV, lti::splitImageToOCP, lti::splitImageToRGB, lti::splitImageTorgI, lti::splitImageToxyY, lti::splitImageToXYZ, lti::splitImageToYCbCr, lti::splitImageToYIQ, lti::splitImageToYPbPr, and lti::splitImageToYUV.
splitImage& lti::splitImage::copy | ( | const splitImage & | other | ) |
Copy operator.
Reimplemented from lti::functor.
Reimplemented in lti::splitImageToYCbCr, lti::splitImageToYPbPr, and lti::splitImageToYUV.
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().
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToRGB, and lti::splitImageTorgI.
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().
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToRGB, and lti::splitImageTorgI.
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().
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToRGB, and lti::splitImageTorgI.
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().
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToRGB, and lti::splitImageTorgI.
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().
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToHSV, lti::splitImageToRGB, and lti::splitImageTorgI.
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().
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToHSV, lti::splitImageToRGB, and lti::splitImageTorgI.
virtual const char* lti::splitImage::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::functor.
Reimplemented in lti::splitImageToGSC, lti::splitImageToGSL, lti::splitImageToHSI, lti::splitImageToRGB, lti::splitImageTorgI, lti::splitImageToYCbCr, lti::splitImageToYPbPr, and lti::splitImageToYUV.
virtual int lti::splitImage::maximum | ( | const int | a, | |
const int | b, | |||
const int | c | |||
) | const [protected, virtual] |
return the minimum of three integers
virtual int lti::splitImage::minimum | ( | const int | a, | |
const int | b, | |||
const int | c | |||
) | const [protected, virtual] |
return the maximum of three integers
splitImage& lti::splitImage::operator= | ( | const splitImage & | other | ) |
Copy operator.
Reimplemented from lti::functor.
Reimplemented in lti::splitImageToYCbCr, lti::splitImageToYPbPr, and lti::splitImageToYUV.