opentl::cvprocess::ColorHistShader Class Reference

This is a shader example for computing the JOINT HISTOGRAM between a template set of model points (grey values) and the corresponding grey values at projected camera locations. The histogram can be used for computing mutual information More...

Inherits opentl::cvprocess::GpuStdShaders.

List of all members.

Classes

struct  Param

Public Member Functions

 ColorHistShader (Param *param=NULL, opentl::core::cvdata::Image *inputImage=NULL)
 Constructor.
void copyHistoFromGPU (opentl::core::cvdata::ColourHist2d &MDestination)
 Copy back the histogram from GPU.
virtual void execute ()
 Shader execution (overrides the base class method).
opentl::cvprocess::GlFbogetCurrentFbo ()
 Get the current FBO (if we want to upload textures from outside, we need to bind to the current FBO!) TODO: This is hacking the class... make it with another function, for uploading/downloading the textures from outside!
opentl::core::cvdata::TextureGpugetSrcTex2 ()
Paramparams ()
 Get/Set parameters for this class.
virtual void prepareDisplayList ()
 Prepare display lists required for 1:1 pixel to texel mapping.
virtual ~ColorHistShader ()
 Destructor.


Detailed Description

This is a shader example for computing the JOINT HISTOGRAM between a template set of model points (grey values) and the corresponding grey values at projected camera locations. The histogram can be used for computing mutual information

NOTE: Derived class from GpuStdShaders.

Author:
Giorgio Panin <panin@in.tum.de>

Constructor & Destructor Documentation

opentl::cvprocess::ColorHistShader::ColorHistShader ( Param param = NULL,
opentl::core::cvdata::Image inputImage = NULL 
)

Constructor.

Parameters:
param Structure of parameters for this class
inputImage (optional) Pointer to the image to be processed by this shader (it will eventually be used by the execute() stage)

virtual opentl::cvprocess::ColorHistShader::~ColorHistShader (  )  [virtual]

Destructor.


Member Function Documentation

void opentl::cvprocess::ColorHistShader::copyHistoFromGPU ( opentl::core::cvdata::ColourHist2d MDestination  ) 

Copy back the histogram from GPU.

Parameters:
MDestination Destination histogram (the source is the GPU texture mColourHistoTexture)

virtual void opentl::cvprocess::ColorHistShader::execute (  )  [virtual]

Shader execution (overrides the base class method).

Reimplemented from opentl::cvprocess::GpuStdShaders.

opentl::cvprocess::GlFbo* opentl::cvprocess::ColorHistShader::getCurrentFbo (  )  [inline]

Get the current FBO (if we want to upload textures from outside, we need to bind to the current FBO!) TODO: This is hacking the class... make it with another function, for uploading/downloading the textures from outside!

opentl::core::cvdata::TextureGpu* opentl::cvprocess::ColorHistShader::getSrcTex2 (  )  [inline]

Param& opentl::cvprocess::ColorHistShader::params (  ) 

Get/Set parameters for this class.

Returns:
Reference to parameter struct

virtual void opentl::cvprocess::ColorHistShader::prepareDisplayList (  )  [virtual]

Prepare display lists required for 1:1 pixel to texel mapping.

Reimplemented from opentl::cvprocess::GpuStdShaders.


Generated on Fri Jul 31 17:38:39 2009 for OpenTL by  doxygen 1.5.8