LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::blueScreen Class Reference

This functor replaces a specified background color of an image with another color or another image ("Bluescreen Technique"). More...

#include <ltiBlueScreen.h>

Inheritance diagram for lti::blueScreen:
Inheritance graph
[legend]
Collaboration diagram for lti::blueScreen:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class blueScreen More...

Public Member Functions

 blueScreen ()
 blueScreen (const parameters &par)
 blueScreen (const blueScreen &other)
virtual ~blueScreen ()
virtual const char * getTypeName () const
bool apply (image &srcdest, image &background) const
bool apply (image &srcdest, rgbPixel &background) const
bool apply (const image &src, image &dest, image &background) const
bool apply (const image &src, image &dest, rgbPixel &background) const
blueScreencopy (const blueScreen &other)
blueScreenoperator= (const blueScreen &other)
virtual functorclone () const
const parametersgetParameters () const

Protected Member Functions

bool inCube (rgbPixel check) const

Detailed Description

This functor replaces a specified background color of an image with another color or another image ("Bluescreen Technique").

The background color is indicated through a spherical or cubic window in the RGB color space.


Constructor & Destructor Documentation

lti::blueScreen::blueScreen (  ) 

default constructor

lti::blueScreen::blueScreen ( const parameters par  ) 

Construct a functor using the given parameters.

lti::blueScreen::blueScreen ( const blueScreen other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::blueScreen::~blueScreen (  )  [virtual]

destructor


Member Function Documentation

bool lti::blueScreen::apply ( const image src,
image dest,
rgbPixel background 
) const

operates on a copy of the given parameters.

Parameters:
src image with the source data.
dest image where the result will be left.
background,: new background color
Returns:
true if apply successful or false otherwise.
bool lti::blueScreen::apply ( const image src,
image dest,
image background 
) const

operates on a copy of the given parameters.

Parameters:
src image with the source data.
dest image where the result will be left.
background,: new background image
Returns:
true if apply successful or false otherwise.
bool lti::blueScreen::apply ( image srcdest,
rgbPixel background 
) const

operates on the given parameter.

Parameters:
srcdest image with the source data. The result will be left here too.
background,: new background color
Returns:
true if apply successful or false otherwise.
bool lti::blueScreen::apply ( image srcdest,
image background 
) const

operates on the given parameter.

Parameters:
srcdest image with the source data. The result will be left here too.
background,: new background image
Returns:
true if apply successful or false otherwise.
virtual functor* lti::blueScreen::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

blueScreen& lti::blueScreen::copy ( const blueScreen other  ) 

copy data of "other" functor.

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

Reimplemented from lti::functor.

const parameters& lti::blueScreen::getParameters (  )  const

returns used parameters

Reimplemented from lti::modifier.

virtual const char* lti::blueScreen::getTypeName (  )  const [virtual]

returns the name of this type ("blueScreen")

Reimplemented from lti::modifier.

bool lti::blueScreen::inCube ( rgbPixel  check  )  const [protected]

Checks if a given rgbPixel is in the defined cube-shaped area in the rgb-color-space.

blueScreen& lti::blueScreen::operator= ( const blueScreen other  ) 

alias for copy member

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

Reimplemented from lti::functor.


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

Generated on Sat Apr 10 15:27:03 2010 for LTI-Lib by Doxygen 1.6.1