|
Kiretu
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include "libfreenect.h"#include <fstream>#include <pthread.h>#include <GL/glut.h>#include <GL/gl.h>#include <GL/glu.h>#include <math.h>#include <vector>#include "Hud.h"#include "YMLParser.h"#include "FrameGrabber.h"#include "KinectCloud.h"#include "CloudWriter.h"#include "Util.h"Functions | |
| void | DrawGLScene () |
| void | keyPressed (unsigned char key, int x, int y) |
| void | ReSizeGLScene (int Width, int Height) |
| void | InitGL (int Width, int Height) |
| void * | gl_threadfunc (void *arg) |
| void | depth_cb (freenect_device *dev, void *v_depth, uint32_t timestamp) |
| void | rgb_cb (freenect_device *dev, void *rgb, uint32_t timestamp) |
| void * | freenect_threadfunc (void *arg) |
| int | main (int argc, char **argv) |
Variables | |
| pthread_t | freenect_thread |
| volatile int | die = 0 |
| int | g_argc |
| char ** | g_argv |
| int | window |
| pthread_mutex_t | gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
| uint8_t * | depth_mid |
| uint8_t * | depth_front |
| uint8_t * | rgb_back |
| uint8_t * | rgb_mid |
| uint8_t * | rgb_front |
| GLuint | gl_depth_tex |
| GLuint | gl_rgb_tex |
| freenect_context * | f_ctx |
| freenect_device * | f_dev |
| int | freenect_angle = 0 |
| int | freenect_led |
| freenect_video_format | requested_format = FREENECT_VIDEO_RGB |
| freenect_video_format | current_format = FREENECT_VIDEO_RGB |
| pthread_cond_t | gl_frame_cond = PTHREAD_COND_INITIALIZER |
| int | got_rgb = 0 |
| int | got_depth = 0 |
| Hud | hud |
| YMLParser | yml ("./calibration/calib.yml") |
| FrameGrabber | fg (50, 5) |
| KinectCloud | kinectCloud |
| CloudWriter | cw ("./ply/cloud") |
| bool | scanning = false |
| bool | showInfo = false |
| bool | showHelp = false |
| bool | enableRawToMeters = true |
| bool | enableDepthToCloud = true |
| bool | enableExtrinsics = true |
| bool | enableRGBMapping = true |
| bool | enableNormalComputation = false |
| bool | reconstructionSteps [5] |
| std::string | kinectFormat = "RGB" |
| uint16_t | t_gamma [2048] |
| void depth_cb | ( | freenect_device * | dev, |
| void * | v_depth, | ||
| uint32_t | timestamp | ||
| ) |
| void DrawGLScene | ( | ) |
| void* freenect_threadfunc | ( | void * | arg | ) |
| void* gl_threadfunc | ( | void * | arg | ) |
| void InitGL | ( | int | Width, |
| int | Height | ||
| ) |
| void keyPressed | ( | unsigned char | key, |
| int | x, | ||
| int | y | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| void ReSizeGLScene | ( | int | Width, |
| int | Height | ||
| ) |
| void rgb_cb | ( | freenect_device * | dev, |
| void * | rgb, | ||
| uint32_t | timestamp | ||
| ) |
| freenect_video_format current_format = FREENECT_VIDEO_RGB |
| CloudWriter cw("./ply/cloud") |
| uint8_t * depth_front |
| uint8_t* depth_mid |
| volatile int die = 0 |
| bool enableDepthToCloud = true |
| bool enableExtrinsics = true |
| bool enableNormalComputation = false |
| bool enableRawToMeters = true |
| bool enableRGBMapping = true |
| freenect_context* f_ctx |
| freenect_device* f_dev |
| FrameGrabber fg(50, 5) |
| int freenect_angle = 0 |
| int freenect_led |
| pthread_t freenect_thread |
| int g_argc |
| char** g_argv |
| pthread_mutex_t gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
| GLuint gl_depth_tex |
| pthread_cond_t gl_frame_cond = PTHREAD_COND_INITIALIZER |
| GLuint gl_rgb_tex |
| int got_depth = 0 |
| int got_rgb = 0 |
| std::string kinectFormat = "RGB" |
| bool reconstructionSteps[5] |
| freenect_video_format requested_format = FREENECT_VIDEO_RGB |
| uint8_t* rgb_back |
| uint8_t * rgb_front |
| uint8_t * rgb_mid |
| bool scanning = false |
| bool showHelp = false |
| bool showInfo = false |
| uint16_t t_gamma[2048] |
| int window |