#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <vector>
#include <GpuVis.h>
#include "options.h"
Functions | |
void | display () |
Display Callback Routine This display routine invokes various display Routines provided by the GpuVis API in order to display intermediate results. | |
void | windowReshape (int w, int h) |
OpenGL Window Reshape Callback Routine. | |
void | keyboard (unsigned char key, int x, int y) |
Keyboard Input Callback Routine. | |
void | initGL () |
0penGL Initialization for Visualization | |
void | main (int argc, char **argv) |
The followin steps are executed in the main function 1. Parse Arguments, 2. Read the Image or 1st Frame in Image Sequence 3. Get Image Size and Set Window Size and Adjust Window Size 4. Prepare to pass argument options to GpuVis library. 5. Initialize The GpuVis Object (pass it the first image or a dummy image) 6. Set OpenGL CallBack Routine Initialization for keybd input / display. 7. Call Pyramid Construction 8. Enable Glut Main Loop. :. | |
Variables | |
int | PC |
Toggle display modes. | |
GpuVis_Image | image |
GpuVis Image object. | |
GpuKLT_FeatureList * | list |
GpuVis Feature List object. | |
GpuVis_Options | gopt |
GpuVis Options object. | |
GpuVis * | gpuComputor |
GpuVis Computor Object. | |
Options | opt |
Manage Cmd Line Params and Globals. | |
int | frameCounter |
Keep count of frames from the start. | |
int | featureCount |
Feature Count. | |
int | trackedCount |
How many features were tracked. |
Sample GpuUrban Driver Code : test1.