# opentl::cvprocess::Grayscale Class Reference

Color to Grayscale filter. Derived class from GpuStdShaders. ATTENTION: This TEMPLATE filter works with a source texture of type GL_TEXTURE_RECTANGLE_ARB only! -> pay attention what kind of texture sampler type is used in the shader code. More...

Inherits opentl::cvprocess::GpuStdShaders.

List of all members.

## Classes
struct | Param
## Public Member Functions
virtual void | execute ()
| Execute shader operation on texture(s). Hint: Requires that prepareExecution() is called once for initialization.
| Grayscale (Param *param=NULL)
| Constructor.
Param & | params ()
| Get/Set parameters for this class.
virtual | ~Grayscale ()
| Destructor.

## Detailed Description

Color to Grayscale filter. Derived class from GpuStdShaders. ATTENTION: This TEMPLATE filter works with a source texture of type GL_TEXTURE_RECTANGLE_ARB only! -> pay attention what kind of texture sampler type is used in the shader code.

Author:
  Erwin Roth <eroth@mytum.de>

## Constructor & Destructor Documentation

opentl::cvprocess::Grayscale::Grayscale | ( | Param * | param = `NULL` | ) |

Constructor.

virtual opentl::cvprocess::Grayscale::~Grayscale | ( |  | ) | `[virtual]`

Destructor.

## Member Function Documentation

virtual void opentl::cvprocess::Grayscale::execute | ( |  | ) | `[virtual]`

Execute shader operation on texture(s). Hint: Requires that prepareExecution() is called once for initialization.

Reimplemented from opentl::cvprocess::GpuStdShaders.

Param& opentl::cvprocess::Grayscale::params | ( |  | ) |

Get/Set parameters for this class.

Returns:
  Reference to parameter struct