#include <DataManager.h>
Public Member Functions | |
DataManager (int w, int h, int nframes, int nlevels, int kltsubsampling, int kltpyrlevels, int kltnumfeats, int kltiterations) | |
Constructor. | |
~DataManager () | |
Destructor. | |
void | initTextureUnits (int w, int h) |
Initializes all the texture units in GPU. | |
void | resetInputTexture (int nplanes, unsigned char *image) |
Resets the input texture unit (for video/image sequence processing. | |
void | toggleFrames () |
Toggle between Current and Previous Frame [ FOR nFrames == 2 ONLY ]. | |
void | uploadFeatureTable (GpuKLT_FeatureList *list) |
Upload the Feature list to GPU memory. | |
void | displayPyramids (int winW, int winH, Kernel *kernel, Kernel *red, Kernel *blue) |
Display The Whole Pyramid. | |
void | displayPyramidBlock (int aux, int frame, int level, Kernel *kernel) |
Display Pyramid Block. | |
void | displayOrigFrame (Kernel *kernel) |
Display Original Frame. | |
void | displayDistortionMap (Kernel *kernel) |
Display Distortion Map. | |
void | displayCornerness (Kernel *kernel, Kernel *colorkernel) |
Display Cornerness Frame. | |
void | displayUndistortedFrame (Kernel *k1, Kernel *kernel, int winw, int winh, float time, int trcount, int ftcount, int ftadded) |
Display Undistorted Frame. | |
void | displayFeatureTable (Kernel *kernel) |
Display Feature Table. | |
void | displayFloatingWindow (Kernel *kernel) |
Display Floating Window. | |
void | displayPartialSum (Kernel *kernel) |
Display Partial Sum. | |
void | displayMatrixElem (Kernel *kernel) |
Display Matrix Element. | |
void | displayDebugTable (Kernel *kernel) |
Display Debug Table. | |
TextureUnit * | getPyramidBlock (int frameIndex, int level, int which_plane) |
Accessor Function :. | |
TextureUnit * | getInputTextureUnit () |
Accessor Function :. | |
TextureUnit * | getDistortionMapTextureUnit () |
Accessor Function :. | |
TextureUnit * | getFeaturesTextureUnit () |
Accessor Function :. | |
TextureUnit * | getFloatingWindowTextureUnit () |
Accessor Function :. | |
TextureUnit * | getPartialSumTextureUnit () |
Accessor Function :. | |
TextureUnit * | getMatrixElemTextureUnit () |
Accessor Function :. | |
TextureUnit * | getCornerness1TextureUnit () |
Accessor Function :. | |
TextureUnit * | getCornerness2TextureUnit () |
Accessor Function :. | |
int | getImgWidth () |
Accessor Function : Returns width of video frame. | |
int | getImgHeight () |
Accessor Function : Returns height of video frame. | |
int | getNumLevels () |
Accessor Function : Returns number of levels within octave. | |
int | getCurrentFrameIndex () |
Accessor Function : Get current Frame Index. | |
int | getNumKLTIterations () |
Accessor Function : Get num KLT Iterations. | |
int | getFeatureTableSize () |
Accessor Function : Get max feature table size. | |
int | getXSize () |
Accessor Function : Get Texture Unit dimension. | |
int | getYSize () |
Accessor Function : Get Texture Unit dimension. | |
float | getXOffset () |
Accessor Function : Get Texture Unit dimension reciprocal. | |
float | getYOffset () |
Accessor Function : Get Texture Unit dimension reciprocal. | |
Public Attributes | |
TextureUnit * | debugTable |
Texture Unit for debugging - REMOVE LATER ON ! | |
FramebufferObject | _fbo |
The 1st framebuffer object. | |
FramebufferObject | _fbo1 |
The 2nd framebuffer object. | |
Renderbuffer | _rb |
Optional: The renderbuffer object used for depth. | |
float * | data |
A pointer to a floating point buffer - used for uploaded data into Texture Memory. |
It manages 2D Texture units used for read / write using FBO's. The Texture Manager (1) Allocates suitable memory (2) Manages the collection of texture units for the various stages ..
|
Constructor.
|
|
Display Cornerness Frame.
|
|
Display Debug Table.
|
|
Display Distortion Map.
|
|
Display Feature Table.
|
|
Display Floating Window.
|
|
Display Matrix Element.
|
|
Display Original Frame.
|
|
Display Partial Sum.
|
|
Display Pyramid Block.
|
|
Display The Whole Pyramid.
|
|
Display Undistorted Frame.
|
|
Accessor Function :.
|
|
Initializes all the texture units in GPU.
|
|
Resets the input texture unit (for video/image sequence processing.
|
|
Upload the Feature list to GPU memory.
|