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 222 of file ImageProcessor.cpp.
Definition at line 229 of file ImageProcessor.cpp.
void ImageProcessor::avgActivate | ( | ) |
Definition at line 423 of file ImageProcessor.cpp.
void ImageProcessor::avgDeactivate | ( | ) |
Definition at line 455 of file ImageProcessor.cpp.
void ImageProcessor::avgGet | ( | float * | avg, |
int | lvl = 0 |
||
) |
Definition at line 433 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 367 of file ImageProcessor.cpp.
void ImageProcessor::copy | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 255 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 246 of file ImageProcessor.cpp.
void ImageProcessor::gauss | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 273 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 462 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 264 of file ImageProcessor.cpp.
void ImageProcessor::render | ( | Texture * | tex | ) |
Definition at line 351 of file ImageProcessor.cpp.
void ImageProcessor::render | ( | Texture * | tex, |
int | x, | ||
int | y, | ||
unsigned | w, | ||
unsigned | h | ||
) |
Definition at line 359 of file ImageProcessor.cpp.
void ImageProcessor::setCamOrtho | ( | ) |
Definition at line 241 of file ImageProcessor.cpp.
void ImageProcessor::sobel | ( | Texture * | source, |
Texture * | result, | ||
float | threshold = 0.01 , |
||
bool | normalise = false , |
||
bool | binary = false |
||
) |
Definition at line 284 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 298 of file ImageProcessor.cpp.
void ImageProcessor::spreading | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 340 of file ImageProcessor.cpp.
void ImageProcessor::thinning | ( | Texture * | source, |
Texture * | result | ||
) |
Definition at line 315 of file ImageProcessor.cpp.
void ImageProcessor::thinning | ( | Texture * | source, |
Texture * | result, | ||
Texture * | mask | ||
) |
Definition at line 326 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.