A simple Sobel filter for image processing.
More...
#include <gradientfilter.hpp>
|
| GradientFilter (void) |
| Default Constructor. More...
|
|
virtual void | initialize () |
| Initializes the effect, creating and loading the shader. More...
|
|
void | renderTexture (Tucano::Texture &tex, Eigen::Vector2i viewport) |
| Applies the gradient filter to an image. More...
|
|
void | setDirections (bool hgrad, bool vgrad) |
| Sets flags for computing gradient in horizontal and vertical directions. More...
|
|
| Effect (string shadersDir="shaders/") |
| Default constructor. More...
|
|
virtual Shader * | loadShader (string shader_name) |
| Loads a shader by filename, initializes it, and inserts in shaders list. More...
|
|
virtual void | loadShader (Shader &shader, string shader_name) |
|
virtual Shader * | loadShader (string shader_name, string vertex_name, string frag_name, string geom_name) |
| Loads a shader by complete filenames (with extensions), initializes it, and inserts in shaders list. More...
|
|
void | setShadersDir (string dir) |
|
virtual void | reloadShaders (void) |
| Reloads all shaders needed for effect usage. More...
|
|
|
std::vector< Shader * > | shaders_list |
| Vector of pointers to shaders used in this effect, in case the user needs multiple pass rendering. More...
|
|
string | shaders_dir |
| Directory in which the shader files are stored. More...
|
|
A simple Sobel filter for image processing.
Tucano::Effects::GradientFilter::GradientFilter |
( |
void |
| ) |
|
|
inline |
virtual void Tucano::Effects::GradientFilter::initialize |
( |
void |
| ) |
|
|
inlinevirtual |
Initializes the effect, creating and loading the shader.
Implements Tucano::Effect.
void Tucano::Effects::GradientFilter::renderTexture |
( |
Tucano::Texture & |
tex, |
|
|
Eigen::Vector2i |
viewport |
|
) |
| |
|
inline |
Applies the gradient filter to an image.
void Tucano::Effects::GradientFilter::setDirections |
( |
bool |
hgrad, |
|
|
bool |
vgrad |
|
) |
| |
|
inline |
Sets flags for computing gradient in horizontal and vertical directions.
- Parameters
-
hgrad | Gradient in horizontal direction. |
vgrad | Gradient in vertical direction. |
bool Tucano::Effects::GradientFilter::horizontal = true |
|
private |
Apply gradient in horizontal direction.
A quad to be rendered forcing one call of the fragment shader per image pixel.
bool Tucano::Effects::GradientFilter::vertical = true |
|
private |
Apply gradient in vertical direction.
The documentation for this class was generated from the following file: