|
| int | initCamera (T_SENTIS_HANDLE *handle) |
| | Helper method that starts the connection with the camera and set the default image_data format. More...
|
| |
| int | getFrame (T_SENTIS_HANDLE handle) |
| | Get a fame from the camera and save it in the global buffer variable. More...
|
| |
| int | stopCamera (T_SENTIS_HANDLE handle) |
| | Close the connections with the camera and set free data structures. More...
|
| |
|
void | init () |
| | Called before main loop to set up the program.
|
| |
|
void | reshape (int w, int h) |
| | Called every time a window is resized to resize the projection matrix.
|
| |
|
void | camera (void) |
| |
|
void | printv (va_list args, const char *format) |
| | Print axis names.
|
| |
|
void | print (const char *format,...) |
| | Loop for printing axis names.
|
| |
| void | drawAxes () |
| | draw axes at defined position More...
|
| |
|
void | display (int value) |
| |
|
void | firstDisplay () |
| | Called at the start of the program.
|
| |
|
void | mouseMovement (int x, int y) |
| | Called after mouse clicking. It calculates the movement of the mouse and redisplays the scene.
|
| |
|
void | mouse (int button, int state, int x, int y) |
| | Callback for mouse clicks.
|
| |
|
void | keyboard (unsigned char key, int x, int y) |
| | Callback for normal key pressed.
|
| |
|
void | windowSpecial (int key, int x, int y) |
| | Callback for arrow keys.
|
| |
|
int | main (int argc, char **argv) |
| |
| #define TICKS_PER_SECOND 20 |
DESCRIPTION
Example application for the sentis-ToF-m100 camera API
This application shows an OpenGl view which displays 3D images based on 3D coordinates. It uses the XYZ+I data format. The camera is supposed to be at 1,5m from the ground. The vindows shows 300cm*300cm*300cm. The Y and Z axis show +150cm. The X axis points 250cm.
The amplitude values are used to set the color (gray) intensity of the image.