#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <cstdlib>
#include "libfreenect.h"
#include <stdint.h>
#include <libusb-1.0/libusb.h>
#include <pthread.h>
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#include <float.h>
#include <limits.h>
#include "opencv2/core/core.hpp"
#include "opencv2/core/types_c.h"
#include "opencv2/core/core_c.h"
#include "opencv2/imgproc/types_c.h"
Go to the source code of this file.
Defines | |
#define | COLS 640 |
#define | ROWS 480 |
Functions | |
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 | ir_cb (freenect_device *dev, freenect_pixel_ir *rgb, uint32_t timestamp) |
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, freenect_pixel *rgb, uint32_t timestamp) |
Variables | |
int | depth_num = 0 |
volatile int | die = 0 |
freenect_context * | f_ctx |
freenect_device * | f_dev |
char * | fdir = NULL |
int | freenect_angle = 0 |
int | freenect_angle_last = 0 |
int | freenect_led |
pthread_t | freenect_thread |
uint8_t | g_gamma [256] |
pthread_mutex_t | gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
uint8_t | gl_depth_back [640 *480 *4] |
uint8_t | gl_depth_front [640 *480 *4] |
GLuint | gl_depth_tex |
pthread_cond_t | gl_frame_cond = PTHREAD_COND_INITIALIZER |
uint8_t | gl_rgb_back [640 *480 *4] |
uint8_t | gl_rgb_front [640 *480 *4] |
GLuint | gl_rgb_tex |
int | got_frames = 0 |
uint8_t | ir_gamma [1024] |
int | ir_mode = 0 |
int | ir_num = 0 |
cv::Size | pattern_size |
int | rgb_num = 0 |
int | s_num = 0 |
bool | saveDepth = false |
bool | saveIR = false |
bool | saveRGB = false |
uint16_t | t_gamma [2048] |
int | window |
#define COLS 640 |
Definition at line 57 of file acquire_data.cpp.
#define ROWS 480 |
Definition at line 56 of file acquire_data.cpp.
void depth_cb | ( | freenect_device * | dev, | |
void * | v_depth, | |||
uint32_t | timestamp | |||
) |
Definition at line 309 of file acquire_data.cpp.
void DrawGLScene | ( | ) |
Definition at line 100 of file acquire_data.cpp.
void* freenect_threadfunc | ( | void * | arg | ) |
Definition at line 493 of file acquire_data.cpp.
void* gl_threadfunc | ( | void * | arg | ) |
Definition at line 284 of file acquire_data.cpp.
void InitGL | ( | int | Width, | |
int | Height | |||
) |
Definition at line 263 of file acquire_data.cpp.
void ir_cb | ( | freenect_device * | dev, | |
freenect_pixel_ir * | rgb, | |||
uint32_t | timestamp | |||
) |
Definition at line 435 of file acquire_data.cpp.
void keyPressed | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) |
Definition at line 155 of file acquire_data.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 522 of file acquire_data.cpp.
void ReSizeGLScene | ( | int | Width, | |
int | Height | |||
) |
Definition at line 253 of file acquire_data.cpp.
void rgb_cb | ( | freenect_device * | dev, | |
freenect_pixel * | rgb, | |||
uint32_t | timestamp | |||
) |
Definition at line 382 of file acquire_data.cpp.
int depth_num = 0 |
Definition at line 66 of file acquire_data.cpp.
volatile int die = 0 |
Definition at line 73 of file acquire_data.cpp.
freenect_context* f_ctx |
Definition at line 89 of file acquire_data.cpp.
freenect_device* f_dev |
Definition at line 90 of file acquire_data.cpp.
char* fdir = NULL |
Definition at line 63 of file acquire_data.cpp.
int freenect_angle = 0 |
Definition at line 91 of file acquire_data.cpp.
int freenect_angle_last = 0 |
Definition at line 92 of file acquire_data.cpp.
int freenect_led |
Definition at line 93 of file acquire_data.cpp.
pthread_t freenect_thread |
Definition at line 72 of file acquire_data.cpp.
uint8_t g_gamma[256] |
Definition at line 306 of file acquire_data.cpp.
pthread_mutex_t gl_backbuf_mutex = PTHREAD_MUTEX_INITIALIZER |
Definition at line 78 of file acquire_data.cpp.
uint8_t gl_depth_back[640 *480 *4] |
Definition at line 81 of file acquire_data.cpp.
uint8_t gl_depth_front[640 *480 *4] |
Definition at line 80 of file acquire_data.cpp.
GLuint gl_depth_tex |
Definition at line 86 of file acquire_data.cpp.
pthread_cond_t gl_frame_cond = PTHREAD_COND_INITIALIZER |
Definition at line 96 of file acquire_data.cpp.
uint8_t gl_rgb_back[640 *480 *4] |
Definition at line 84 of file acquire_data.cpp.
uint8_t gl_rgb_front[640 *480 *4] |
Definition at line 83 of file acquire_data.cpp.
GLuint gl_rgb_tex |
Definition at line 87 of file acquire_data.cpp.
int got_frames = 0 |
Definition at line 97 of file acquire_data.cpp.
uint8_t ir_gamma[1024] |
Definition at line 305 of file acquire_data.cpp.
int ir_mode = 0 |
Definition at line 76 of file acquire_data.cpp.
int ir_num = 0 |
Definition at line 64 of file acquire_data.cpp.
cv::Size pattern_size |
Definition at line 60 of file acquire_data.cpp.
int rgb_num = 0 |
Definition at line 65 of file acquire_data.cpp.
int s_num = 0 |
Definition at line 67 of file acquire_data.cpp.
bool saveDepth = false |
Definition at line 70 of file acquire_data.cpp.
bool saveIR = false |
Definition at line 68 of file acquire_data.cpp.
bool saveRGB = false |
Definition at line 69 of file acquire_data.cpp.
uint16_t t_gamma[2048] |
Definition at line 304 of file acquire_data.cpp.
int window |
Definition at line 75 of file acquire_data.cpp.