CVR-Lib last update 20 Sep 2009

cvr::splitImage Class Reference
[Color Analysis]

Abstract parent class for all classes that split an image into different color spaces components (color channels). More...

#include <cvrSplitImage.h>

Inheritance diagram for cvr::splitImage:

Inheritance graph
[legend]
Collaboration diagram for cvr::splitImage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 splitImage ()
 splitImage (const splitImage &other)
virtual ~splitImage ()
virtual splitImageclone () const =0
virtual splitImagenewInstance () const =0
splitImagecopy (const splitImage &other)
splitImageoperator= (const splitImage &other)
const parametersgetParameters () 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 >
maximum (const T a, const T b, const T c) const
template<typename T >
minimum (const T a, const T b, const T c) const


Detailed Description

Abstract parent class for all classes that split an image into different color spaces components (color channels).

Constructor & Destructor Documentation

cvr::splitImage::splitImage (  ) 

default constructor

cvr::splitImage::splitImage ( const splitImage other  ) 

copy constructor

virtual cvr::splitImage::~splitImage (  )  [virtual]

destructor


Member Function Documentation

virtual bool cvr::splitImage::apply ( const rgbaPixel pixel,
ubyte c1,
ubyte c2,
ubyte c3 
) const [pure virtual]

virtual bool cvr::splitImage::apply ( const rgbaPixel pixel,
float &  c1,
float &  c2,
float &  c3 
) const [pure virtual]

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]

splitImage& cvr::splitImage::copy ( const splitImage other  ) 

Copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

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().

Parameters:
img the source image
c1 the extracted channel

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().

Parameters:
img the source image
c1 the extracted channel

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().

Parameters:
img the source image
c2 the extracted channel

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().

Parameters:
img the source image
c2 the extracted channel

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().

Parameters:
img the source image
c3 the extracted channel

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().

Parameters:
img the source image
c3 the extracted channel

Reimplemented in cvr::splitImageToHSI, and cvr::splitImageToRGB.

const parameters& cvr::splitImage::getParameters (  )  const

Returns used parameters.

Reimplemented from cvr::parametersManager.

Reimplemented in cvr::splitImageToRGB.

template<typename T >
T cvr::splitImage::maximum ( const T  a,
const T  b,
const T  c 
) const [inline, protected]

return the minimum of three values

template<typename T >
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]

splitImage& cvr::splitImage::operator= ( const splitImage other  ) 

Alias for copy member.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object


The documentation for this class was generated from the following file:

Generated on Sun Sep 20 22:08:52 2009 for CVR-Lib by Doxygen 1.5.8