#include <ImgFilter.h>
Inheritance diagram for ImgFilter:
Public Member Functions | |
ImgFilter () | |
Constructor. | |
ImgFilter (int w, int h) | |
Constructor. | |
~ImgFilter () | |
Destructor. | |
void | setKernelWidth (int w) |
Set Kernel Width. | |
void | setKernelHeight (int h) |
Set Kernel Height. | |
void | setRange (int ranWidth, int ranHeight) |
Set the range of the function represented by filter in terms of output pixel coordinates. | |
int | getWidth (void) |
Return the filter width. | |
int | getHeight (void) |
Return the filter height. | |
void | activate () |
Activate the shader program making up the filter. | |
void | deactivate () |
Deactivate the shader program making up the filter. | |
void | setInput (GLuint texID) |
Specify the input texture for the shader (input image to the filter). | |
void | execute (int top, int left, int bot, int right) |
Invoke the filter by rendering a quad. | |
void | execute (float vtop, float vleft, float vbot, float vright, int top, int left, int bot, int right) |
Invoke the filter by rendering a quad, pass in the output box extent and input box texcoords. | |
Protected Attributes | |
int | height |
Kernel width and height;. | |
int | hheight |
half of kernel, =n for 2n+1 X 2n+1 kernel | |
float ** | kernel |
Kernel footprint. | |
int | ranH |
(0 -> ranW, 0 -> ranH) Function Range |
This object represents a computation involving applying a filter to an image using GPGPU framework.
Invoking Computation and Specifying Domain,Range to the filter function is similar to that for the Kernel object.