CVR-Lib last update 20 Sep 2009

cvr::splitImageTorgI Class Reference
[Color Analysis]

Split image in its chromaticity channels. More...

#include <cvrSplitImageTorgI.h>

Inheritance diagram for cvr::splitImageTorgI:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 splitImageTorgI ()
 splitImageTorgI (const splitImageTorgI &other)
virtual ~splitImageTorgI ()
splitImageTorgIcopy (const splitImageTorgI &other)
splitImageTorgIoperator= (const splitImageTorgI &other)
virtual const std::string & name () const
virtual splitImageTorgIclone () const
virtual splitImageTorgInewInstance () const
virtual bool apply (const matrix< image::value_type > &img, matrix< channel::value_type > &r, matrix< channel::value_type > &g, matrix< channel::value_type > &I) const
virtual bool apply (const matrix< image::value_type > &img, matrix< channel8::value_type > &r, matrix< channel8::value_type > &g, matrix< channel8::value_type > &I) const
virtual bool apply (const rgbaPixel &pixel, float &r, float &g, float &I) const
virtual bool apply (const rgbaPixel &pixel, ubyte &r, ubyte &g, ubyte &I) const
bool getR (const matrix< image::value_type > &img, matrix< channel::value_type > &r) const
bool getR (const matrix< image::value_type > &img, matrix< channel8::value_type > &r) const
bool getG (const matrix< image::value_type > &img, matrix< channel::value_type > &g) const
bool getG (const matrix< image::value_type > &img, matrix< channel8::value_type > &g) const
bool getIntensity (const matrix< image::value_type > &img, matrix< channel::value_type > &I) const
bool getIntensity (const matrix< image::value_type > &img, matrix< channel8::value_type > &I) const
virtual bool getFirst (const matrix< image::value_type > &img, matrix< channel::value_type > &c1) const
virtual bool getFirst (const matrix< image::value_type > &img, matrix< channel8::value_type > &c1) const
virtual bool getSecond (const matrix< image::value_type > &img, matrix< channel::value_type > &c2) const
virtual bool getSecond (const matrix< image::value_type > &img, matrix< channel8::value_type > &c2) const
virtual bool getThird (const matrix< image::value_type > &img, matrix< channel::value_type > &c3) const
virtual bool getThird (const matrix< image::value_type > &img, matrix< channel8::value_type > &c3) const


Detailed Description

Split image in its chromaticity channels.

The chromaticity channels are defined as follows:

You can get all channels at the same time using apply() or just get one using the shortcut methods getR(), getG() or getIntensity().


Constructor & Destructor Documentation

cvr::splitImageTorgI::splitImageTorgI (  ) 

Constructor.

cvr::splitImageTorgI::splitImageTorgI ( const splitImageTorgI other  ) 

Copy Constructor.

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

Destructor.


Member Function Documentation

virtual bool cvr::splitImageTorgI::apply ( const rgbaPixel 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 cvr::splitImage.

virtual bool cvr::splitImageTorgI::apply ( const rgbaPixel 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 cvr::splitImage.

virtual bool cvr::splitImageTorgI::apply ( const matrix< image::value_type > &  img,
matrix< channel8::value_type > &  r,
matrix< channel8::value_type > &  g,
matrix< channel8::value_type > &  I 
) const [virtual]

Split the image in chromacity channels r and g and intensity channel.

The values of each pixel will be between 0 and 255

Parameters:
img the image to be splitted
r the chromacity channel
g the chromacity channel
I the intensity channel

Implements cvr::splitImage.

virtual bool cvr::splitImageTorgI::apply ( const matrix< image::value_type > &  img,
matrix< channel::value_type > &  r,
matrix< channel::value_type > &  g,
matrix< channel::value_type > &  I 
) const [virtual]

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:
img the image to be splitted
r the chromacity channel
g the chromacity channel
I the intensity channel

Implements cvr::splitImage.

virtual splitImageTorgI* cvr::splitImageTorgI::clone (  )  const [virtual]

Returns a pointer to a clone of the functor.

Implements cvr::splitImage.

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

Copy data of "other" functor.

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

virtual bool cvr::splitImageTorgI::getFirst ( 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

virtual bool cvr::splitImageTorgI::getFirst ( 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

bool cvr::splitImageTorgI::getG ( const matrix< image::value_type > &  img,
matrix< channel8::value_type > &  g 
) const

Shortcut to get the green channel only.

The values of each pixel will be between 0 and 255

Parameters:
img the image to be splitted
g the chromacity green channel

bool cvr::splitImageTorgI::getG ( const matrix< image::value_type > &  img,
matrix< channel::value_type > &  g 
) const

Shortcut to get the red channel only.

The values of each pixel will be between 0.0f and 1.0f

Parameters:
img the image to be splitted
g the chromacity green channel

bool cvr::splitImageTorgI::getIntensity ( const matrix< image::value_type > &  img,
matrix< channel8::value_type > &  I 
) const

Shortcut to get the red channel only.

The values of each pixel will be between 0 and 255

Parameters:
img the image to be splitted
I the intensity channel

bool cvr::splitImageTorgI::getIntensity ( const matrix< image::value_type > &  img,
matrix< channel::value_type > &  I 
) const

Shortcut to get the red channel only.

The values of each pixel will be between 0.0f and 1.0f

Parameters:
img the image to be splitted
I the intensity channel

bool cvr::splitImageTorgI::getR ( const matrix< image::value_type > &  img,
matrix< channel8::value_type > &  r 
) const

Shortcut to get the red channel only.

The values of each pixel will be between 0 and 255

Parameters:
img the image to be splitted
r the chromacity red channel

bool cvr::splitImageTorgI::getR ( const matrix< image::value_type > &  img,
matrix< channel::value_type > &  r 
) const

Shortcut to get the red channel only.

The values of each pixel will be between 0.0f and 1.0f

Parameters:
img the image to be splitted
r the chromacity red channel

virtual bool cvr::splitImageTorgI::getSecond ( 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

virtual bool cvr::splitImageTorgI::getSecond ( 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

virtual bool cvr::splitImageTorgI::getThird ( 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

virtual bool cvr::splitImageTorgI::getThird ( 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

virtual const std::string& cvr::splitImageTorgI::name (  )  const [virtual]

Returns the name of this class.

Implements cvr::functor.

virtual splitImageTorgI* cvr::splitImageTorgI::newInstance (  )  const [virtual]

Returns a pointer to a new instance of the functor.

Implements cvr::splitImage.

splitImageTorgI& cvr::splitImageTorgI::operator= ( const splitImageTorgI 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