|
last update 20 Sep 2009 |
|
#include <cvrSplitImage.h>


Public Member Functions | |
| splitImage () | |
| splitImage (const splitImage &other) | |
| virtual | ~splitImage () |
| virtual splitImage * | clone () const =0 |
| virtual splitImage * | newInstance () const =0 |
| splitImage & | copy (const splitImage &other) |
| splitImage & | operator= (const splitImage &other) |
| const parameters & | getParameters () const |
| virtual bool | apply (const matrix< image::value_type > &img, matrix< channel::value_type > &c1, matrix< channel::value_type > &c2, matrix< channel::value_type > &c3) const =0 |
| virtual bool | apply (const matrix< image::value_type > &img, matrix< channel8::value_type > &c1, matrix< channel8::value_type > &c2, matrix< channel8::value_type > &c3) const =0 |
| virtual bool | apply (const rgbaPixel &pixel, float &c1, float &c2, float &c3) const =0 |
| virtual bool | apply (const rgbaPixel &pixel, ubyte &c1, ubyte &c2, ubyte &c3) const =0 |
| 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 |
Protected Member Functions | |
| template<typename T > | |
| T | maximum (const T a, const T b, const T c) const |
| template<typename T > | |
| T | minimum (const T a, const T b, const T c) const |
| cvr::splitImage::splitImage | ( | ) |
default constructor
| cvr::splitImage::splitImage | ( | const splitImage & | other | ) |
copy constructor
| virtual cvr::splitImage::~splitImage | ( | ) | [virtual] |
destructor
| virtual bool cvr::splitImage::apply | ( | const rgbaPixel & | pixel, | |
| ubyte & | c1, | |||
| ubyte & | c2, | |||
| ubyte & | c3 | |||
| ) | const [pure virtual] |
Splits the rgbPixel pixel into three color values c1, c2, and c3.
Implemented in cvr::splitImageToHSI, cvr::splitImageToRGB, cvr::splitImageTorgI, cvr::splitImageToYCbCr, cvr::splitImageToYIQ, cvr::splitImageToYPbPr, and cvr::splitImageToYUV.
| virtual bool cvr::splitImage::apply | ( | const rgbaPixel & | pixel, | |
| float & | c1, | |||
| float & | c2, | |||
| float & | c3 | |||
| ) | const [pure virtual] |
Splits the rgbPixel pixel into three color values c1, c2, and c3.
Implemented in cvr::splitImageToHSI, cvr::splitImageToRGB, cvr::splitImageTorgI, cvr::splitImageToYCbCr, cvr::splitImageToYIQ, cvr::splitImageToYPbPr, and cvr::splitImageToYUV.
| virtual bool cvr::splitImage::apply | ( | const matrix< image::value_type > & | img, | |
| matrix< channel8::value_type > & | c1, | |||
| matrix< channel8::value_type > & | c2, | |||
| matrix< channel8::value_type > & | c3 | |||
| ) | const [pure virtual] |
Splits the image img into three color channel8s c1, c2, and c3.
Implemented in cvr::splitImageToHSI, cvr::splitImageToRGB, and cvr::splitImageTorgI.
| virtual bool cvr::splitImage::apply | ( | const matrix< image::value_type > & | img, | |
| matrix< channel::value_type > & | c1, | |||
| matrix< channel::value_type > & | c2, | |||
| matrix< channel::value_type > & | c3 | |||
| ) | const [pure virtual] |
Splits the image img into three color channels c1, c2, and c3.
Implemented in cvr::splitImageToHSI, cvr::splitImageToRGB, and cvr::splitImageTorgI.
| virtual splitImage* cvr::splitImage::clone | ( | ) | const [pure virtual] |
returns a pointer to a clone of the functor.
Implements cvr::functor.
Implemented in cvr::splitImageToHSI, cvr::splitImageToRGB, cvr::splitImageTorgI, cvr::splitImageToYCbCr, cvr::splitImageToYIQ, cvr::splitImageToYPbPr, and cvr::splitImageToYUV.
| splitImage& cvr::splitImage::copy | ( | const splitImage & | other | ) |
| virtual bool cvr::splitImage::extractFirst | ( | const matrix< image::value_type > & | img, | |
| matrix< channel8::value_type > & | 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().
Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.
| virtual bool cvr::splitImage::extractFirst | ( | const matrix< image::value_type > & | img, | |
| matrix< channel::value_type > & | 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().
Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.
| virtual bool cvr::splitImage::extractSecond | ( | const matrix< image::value_type > & | img, | |
| matrix< channel8::value_type > & | 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().
Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.
| virtual bool cvr::splitImage::extractSecond | ( | const matrix< image::value_type > & | img, | |
| matrix< channel::value_type > & | 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().
Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.
| virtual bool cvr::splitImage::extractThird | ( | const matrix< image::value_type > & | img, | |
| matrix< channel8::value_type > & | 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().
Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.
| virtual bool cvr::splitImage::extractThird | ( | const matrix< image::value_type > & | img, | |
| matrix< channel::value_type > & | 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().
Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.
| const parameters& cvr::splitImage::getParameters | ( | ) | const |
Returns used parameters.
Reimplemented from cvr::parametersManager.
Reimplemented in cvr::splitImageToRGB.
| T cvr::splitImage::maximum | ( | const T | a, | |
| const T | b, | |||
| const T | c | |||
| ) | const [inline, protected] |
return the minimum of three values
| T cvr::splitImage::minimum | ( | const T | a, | |
| const T | b, | |||
| const T | c | |||
| ) | const [inline, protected] |
return the maximum of three value
| virtual splitImage* cvr::splitImage::newInstance | ( | ) | const [pure virtual] |
returns a pointer to a new instance of the functor.
Implements cvr::functor.
Implemented in cvr::splitImageToHSI, cvr::splitImageToRGB, cvr::splitImageTorgI, cvr::splitImageToYCbCr, cvr::splitImageToYIQ, cvr::splitImageToYPbPr, and cvr::splitImageToYUV.
| splitImage& cvr::splitImage::operator= | ( | const splitImage & | other | ) |