ReconstructMe SDK
1.0.726-75385
Real-time 3D reconstruction engine
|
This module provides basic inline viewing capatibilities for debugging purposes. You should not rely on this functionality in production code. It is meant for debugging and rapid prototype purposes. Viewing will lower the performance of the system. See the example below for basic usage
typedef int reme_viewer_t |
Handle referencing a viewer object.
Basic viewing of sensor and reconstruction outputs is provided through this SDK as an debugging functionality. You should not rely on its presence, as it might get dropped in later versions of this SDK.
reme_error_t reme_viewer_create_image | ( | reme_context_t | c, |
const char * | title, | ||
reme_viewer_t * | v | ||
) |
Create viewer for viewing multiple images.
c | A valid context object |
title | Window title |
v | A pointer to the resulting viewer object |
REME_ERROR_SUCCESS | On success |
REME_ERROR_UNSPECIFIED | On failure |
reme_error_t reme_viewer_create_surface | ( | reme_context_t | c, |
reme_surface_t | s, | ||
const char * | title, | ||
reme_viewer_t * | v | ||
) |
Create viewer for specific surface.
In order to work properly this method should be called for a non-empty surface.
c | A valid context object |
s | A valid surface object |
title | Window title |
v | A pointer to the resulting viewer object |
REME_ERROR_SUCCESS | On success |
REME_ERROR_UNSPECIFIED | On failure |
reme_error_t reme_viewer_destroy | ( | reme_context_t | c, |
reme_viewer_t * | v | ||
) |
Destroy a previously created viewer object.
c | A pointer to a valid context object |
v | A mutable pointer to a valid viewer handle to destroy |
REME_ERROR_SUCCESS | On success |
REME_ERROR_UNSPECIFIED | On failure |
reme_error_t reme_viewer_add_image | ( | reme_context_t | c, |
reme_viewer_t | v, | ||
reme_sensor_t | s, | ||
reme_sensor_image_t | i | ||
) |
Add image to be displayed.
c | A valid context object |
v | A valid viewer object |
s | A valid sensor object |
i | The type of image to add from sensor |
REME_ERROR_SUCCESS | On success |
REME_ERROR_UNSPECIFIED | On failure |
reme_error_t reme_viewer_update | ( | reme_context_t | c, |
reme_viewer_t | v | ||
) |
Update viewer content.
Updates the content of the given viewer for a single frame.
c | A valid context object |
v | A valid viewer object |
REME_ERROR_SUCCESS | On success |
REME_ERROR_UNSPECIFIED | On failure |
reme_error_t reme_viewer_wait | ( | reme_context_t | c, |
reme_viewer_t | v | ||
) |
Update viewer content until the user closes the viewer.
Blocks the calling thread until the user closes the viewer.
c | A valid context object |
v | A valid viewer object |
REME_ERROR_SUCCESS | On success |
REME_ERROR_UNSPECIFIED | On failure |