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) |
void | render (Texture *tex, int x, int y, unsigned w, unsigned h) |
void | setCamOrtho () |
void | sobel (Texture *source, Texture *result, float threshold=0.01, bool normalise=false, bool binary=false) |
void | sobel (Texture *source, Texture *result, Texture *mask, float threshold=0.01, bool normalize=false, bool binary=false) |
void | spreading (Texture *source, Texture *result) |
void | thinning (Texture *source, Texture *result) |
void | thinning (Texture *source, Texture *result, Texture *mask) |
~ImageProcessor () | |
Private Member Functions | |
bool | dlFlipUpsideDown () |
bool | dlImage () |
bool | dlImage (float x, float y, float w, float h) |
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.
Definition at line 224 of file ImageProcessor.cpp.
Definition at line 231 of file ImageProcessor.cpp.
void ImageProcessor::avgActivate | ( | ) |
Definition at line 425 of file ImageProcessor.cpp.
void ImageProcessor::avgDeactivate | ( | ) |
Definition at line 457 of file ImageProcessor.cpp.
void ImageProcessor::avgGet | ( | float * | avg, |
int | lvl = 0 |
||
) |
Definition at line 435 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 369 of file ImageProcessor.cpp.
void ImageProcessor::copy | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 257 of file ImageProcessor.cpp.
bool ImageProcessor::dlFlipUpsideDown | ( | ) | [private] |
Definition at line 129 of file ImageProcessor.cpp.
bool ImageProcessor::dlImage | ( | ) | [private] |
Definition at line 91 of file ImageProcessor.cpp.
bool ImageProcessor::dlImage | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) | [private] |
Definition at line 115 of file ImageProcessor.cpp.
bool ImageProcessor::dlRectification | ( | ) | [private] |
Definition at line 154 of file ImageProcessor.cpp.
void ImageProcessor::flipUpsideDown | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 248 of file ImageProcessor.cpp.
void ImageProcessor::gauss | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 275 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 464 of file ImageProcessor.cpp.
bool ImageProcessor::initShader | ( | ) | [private] |
Definition at line 10 of file ImageProcessor.cpp.
void ImageProcessor::rectification | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 266 of file ImageProcessor.cpp.
void ImageProcessor::render | ( | Texture * | tex | ) |
Definition at line 353 of file ImageProcessor.cpp.
void ImageProcessor::render | ( | Texture * | tex, |
int | x, | ||
int | y, | ||
unsigned | w, | ||
unsigned | h | ||
) |
Definition at line 361 of file ImageProcessor.cpp.
void ImageProcessor::setCamOrtho | ( | ) |
Definition at line 243 of file ImageProcessor.cpp.
void ImageProcessor::sobel | ( | Texture * | source, |
Texture * | result, | ||
float | threshold = 0.01 , |
||
bool | normalise = false , |
||
bool | binary = false |
||
) |
Definition at line 286 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 300 of file ImageProcessor.cpp.
void ImageProcessor::spreading | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 342 of file ImageProcessor.cpp.
void ImageProcessor::thinning | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 317 of file ImageProcessor.cpp.
void ImageProcessor::thinning | ( | Texture * | source, |
Texture * | result, | ||
Texture * | mask | ||
) |
Definition at line 328 of file ImageProcessor.cpp.
bool ImageProcessor::transform | ( | float | i, |
float | j, | ||
float * | ix, | ||
float * | iy | ||
) | [private] |
Definition at line 188 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.