$search
class ImageProcessor More...
#include <ImageProcessor.h>
Public Member Functions | |
| void | avgActivate () |
| void | avgDeactivate () |
| void | avgGet (float *avg, int lvl=0) |
| int | avgGetResolution () |
| GLenum | avgInit (int res) |
| void | copy (Texture *source, Texture *result) |
| void | flipUpsideDown (Texture *source, Texture *result) |
| void | gauss (Texture *source, Texture *result) |
| int | getHeight () |
| int | getWidth () |
| ImageProcessor () | |
| bool | init (unsigned w, unsigned h) |
| void | rectification (Texture *source, Texture *result) |
| void | render (Texture *tex, int x, int y, unsigned w, unsigned h) |
| void | render (Texture *tex) |
| void | setCamOrtho () |
| void | sobel (Texture *source, Texture *result, Texture *mask, float threshold=0.01, bool normalize=false, bool binary=false) |
| void | sobel (Texture *source, Texture *result, float threshold=0.01, bool normalise=false, bool binary=false) |
| void | spreading (Texture *source, Texture *result) |
| void | thinning (Texture *source, Texture *result, Texture *mask) |
| void | thinning (Texture *source, Texture *result) |
| ~ImageProcessor () | |
Private Member Functions | |
| bool | dlFlipUpsideDown () |
| bool | dlImage (float x, float y, float w, float h) |
| bool | dlImage () |
| bool | dlRectification () |
| bool | initShader () |
| bool | transform (float i, float j, float *ix, float *iy) |
Private Attributes | |
| GLuint | fbo |
| int | fbo_res |
| int | fbo_stage |
| GLuint | fbo_tex |
| GLuint | fbo_tex_depth |
| TomGine::tgCamera | m_cam_ortho |
| TomGine::tgCamera | m_cam_ortho_fbo |
| int | m_dlImage |
| int | m_dlRect |
| int | m_dlUpsideDown |
| unsigned | m_height |
| LensMode | m_lensMode |
| Shader * | m_shadeGauss |
| Shader * | m_shadeSobel |
| Shader * | m_shadeSpreading |
| Shader * | m_shadeThinning |
| bool | m_sum_init |
| unsigned | m_width |
class ImageProcessor
Definition at line 23 of file ImageProcessor.h.
| ImageProcessor::ImageProcessor | ( | ) |
Definition at line 221 of file ImageProcessor.cpp.
| ImageProcessor::~ImageProcessor | ( | ) |
Definition at line 228 of file ImageProcessor.cpp.
| void ImageProcessor::avgActivate | ( | ) |
Definition at line 422 of file ImageProcessor.cpp.
| void ImageProcessor::avgDeactivate | ( | ) |
Definition at line 454 of file ImageProcessor.cpp.
| void ImageProcessor::avgGet | ( | float * | avg, | |
| int | lvl = 0 | |||
| ) |
Definition at line 432 of file ImageProcessor.cpp.
| int Tracking::ImageProcessor::avgGetResolution | ( | ) | [inline] |
Definition at line 81 of file ImageProcessor.h.
| GLenum ImageProcessor::avgInit | ( | int | res | ) |
Definition at line 366 of file ImageProcessor.cpp.
Definition at line 254 of file ImageProcessor.cpp.
| bool ImageProcessor::dlFlipUpsideDown | ( | ) | [private] |
Definition at line 128 of file ImageProcessor.cpp.
| bool ImageProcessor::dlImage | ( | float | x, | |
| float | y, | |||
| float | w, | |||
| float | h | |||
| ) | [private] |
Definition at line 114 of file ImageProcessor.cpp.
| bool ImageProcessor::dlImage | ( | ) | [private] |
Definition at line 90 of file ImageProcessor.cpp.
| bool ImageProcessor::dlRectification | ( | ) | [private] |
Definition at line 153 of file ImageProcessor.cpp.
Definition at line 245 of file ImageProcessor.cpp.
Definition at line 272 of file ImageProcessor.cpp.
| int Tracking::ImageProcessor::getHeight | ( | ) | [inline] |
Definition at line 61 of file ImageProcessor.h.
| int Tracking::ImageProcessor::getWidth | ( | ) | [inline] |
Definition at line 60 of file ImageProcessor.h.
| bool ImageProcessor::init | ( | unsigned | w, | |
| unsigned | h | |||
| ) |
Definition at line 461 of file ImageProcessor.cpp.
| bool ImageProcessor::initShader | ( | ) | [private] |
Definition at line 9 of file ImageProcessor.cpp.
Definition at line 263 of file ImageProcessor.cpp.
| void ImageProcessor::render | ( | Texture * | tex, | |
| int | x, | |||
| int | y, | |||
| unsigned | w, | |||
| unsigned | h | |||
| ) |
Definition at line 358 of file ImageProcessor.cpp.
| void ImageProcessor::render | ( | Texture * | tex | ) |
Definition at line 350 of file ImageProcessor.cpp.
| void ImageProcessor::setCamOrtho | ( | ) |
Definition at line 240 of file ImageProcessor.cpp.
| void ImageProcessor::sobel | ( | Texture * | source, | |
| Texture * | result, | |||
| Texture * | mask, | |||
| float | threshold = 0.01, |
|||
| bool | normalize = false, |
|||
| bool | binary = false | |||
| ) |
Definition at line 297 of file ImageProcessor.cpp.
| void ImageProcessor::sobel | ( | Texture * | source, | |
| Texture * | result, | |||
| float | threshold = 0.01, |
|||
| bool | normalise = false, |
|||
| bool | binary = false | |||
| ) |
Definition at line 283 of file ImageProcessor.cpp.
Definition at line 339 of file ImageProcessor.cpp.
Definition at line 325 of file ImageProcessor.cpp.
Definition at line 314 of file ImageProcessor.cpp.
| bool ImageProcessor::transform | ( | float | i, | |
| float | j, | |||
| float * | ix, | |||
| float * | iy | |||
| ) | [private] |
Definition at line 187 of file ImageProcessor.cpp.
GLuint Tracking::ImageProcessor::fbo [private] |
Definition at line 39 of file ImageProcessor.h.
int Tracking::ImageProcessor::fbo_res [private] |
Definition at line 42 of file ImageProcessor.h.
int Tracking::ImageProcessor::fbo_stage [private] |
Definition at line 43 of file ImageProcessor.h.
GLuint Tracking::ImageProcessor::fbo_tex [private] |
Definition at line 40 of file ImageProcessor.h.
GLuint Tracking::ImageProcessor::fbo_tex_depth [private] |
Definition at line 41 of file ImageProcessor.h.
Definition at line 37 of file ImageProcessor.h.
Definition at line 37 of file ImageProcessor.h.
int Tracking::ImageProcessor::m_dlImage [private] |
Definition at line 28 of file ImageProcessor.h.
int Tracking::ImageProcessor::m_dlRect [private] |
Definition at line 27 of file ImageProcessor.h.
int Tracking::ImageProcessor::m_dlUpsideDown [private] |
Definition at line 29 of file ImageProcessor.h.
unsigned Tracking::ImageProcessor::m_height [private] |
Definition at line 26 of file ImageProcessor.h.
LensMode Tracking::ImageProcessor::m_lensMode [private] |
Definition at line 30 of file ImageProcessor.h.
Shader* Tracking::ImageProcessor::m_shadeGauss [private] |
Definition at line 32 of file ImageProcessor.h.
Shader* Tracking::ImageProcessor::m_shadeSobel [private] |
Definition at line 33 of file ImageProcessor.h.
Shader* Tracking::ImageProcessor::m_shadeSpreading [private] |
Definition at line 35 of file ImageProcessor.h.
Shader* Tracking::ImageProcessor::m_shadeThinning [private] |
Definition at line 34 of file ImageProcessor.h.
bool Tracking::ImageProcessor::m_sum_init [private] |
Definition at line 44 of file ImageProcessor.h.
unsigned Tracking::ImageProcessor::m_width [private] |
Definition at line 25 of file ImageProcessor.h.