#include "libfreenect.h"
#include "freenect_internal.h"
#include "registration.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
Go to the source code of this file.
|
static void | complete_tables (freenect_registration *reg) |
| Compute registration tables. More...
|
|
FN_INTERNAL int | freenect_apply_depth_to_mm (freenect_device *dev, uint8_t *input_packed, uint16_t *output_mm) |
|
FN_INTERNAL int | freenect_apply_registration (freenect_device *dev, uint8_t *input_packed, uint16_t *output_mm) |
|
void | freenect_camera_to_world (freenect_device *dev, int cx, int cy, int wz, double *wx, double *wy) |
| camera -> world coordinate helper function More...
|
|
freenect_registration | freenect_copy_registration (freenect_device *dev) |
|
static void | freenect_create_dxdy_tables (double *reg_x_table, double *reg_y_table, int32_t resolution_x, int32_t resolution_y, freenect_reg_info *regdata) |
|
int | freenect_destroy_registration (freenect_registration *reg) |
|
static void | freenect_init_depth_to_rgb (int32_t *depth_to_rgb, freenect_zero_plane_info *zpi) |
| fill the table of horizontal shift values for metric depth -> RGB conversion More...
|
|
FN_INTERNAL int | freenect_init_registration (freenect_device *dev) |
|
static void | freenect_init_registration_table (int32_t(*registration_table)[2], freenect_reg_info *reg_info) |
|
static uint16_t | freenect_raw_to_mm (uint16_t raw, freenect_registration *reg) |
| convert raw shift value to metric depth (in mm) More...
|
|
static void | unpack_8_pixels (uint8_t *raw, uint16_t *frame) |
|
#define DEPTH_SENSOR_X_RES 1280 |
#define REG_X_VAL_SCALE 256 |
#define S2D_CONST_OFFSET 0.375 |
#define S2D_PIXEL_CONST 10 |
void freenect_camera_to_world |
( |
freenect_device * |
dev, |
|
|
int |
cx, |
|
|
int |
cy, |
|
|
int |
wz, |
|
|
double * |
wx, |
|
|
double * |
wy |
|
) |
| |
camera -> world coordinate helper function
Definition at line 318 of file registration.c.
static void freenect_create_dxdy_tables |
( |
double * |
reg_x_table, |
|
|
double * |
reg_y_table, |
|
|
int32_t |
resolution_x, |
|
|
int32_t |
resolution_y, |
|
|
freenect_reg_info * |
regdata |
|
) |
| |
|
static |
fill the table of horizontal shift values for metric depth -> RGB conversion
Definition at line 60 of file registration.c.
Allocate and fill registration tables This function should be called every time a new video (not depth!) mode is activated.
Definition at line 335 of file registration.c.
convert raw shift value to metric depth (in mm)
Definition at line 297 of file registration.c.
double parameter_coefficient = 4 |
|
static |
double pixel_size_factor = 1 |
|
static |