![]() |
ImFusion SDK 4.3
|
#include <RGBD/Include/ImFusion/RGBD/SimulatorRenderer.h>
Renderer for simulating RGB-D sensor output from 3D models. More...
Renderer for simulating RGB-D sensor output from 3D models.
This class provides functionality to render synthetic RGB-D frames from a set of 3D meshes and a camera configuration. It supports semantic labeling and rendering of surface coordinates.
Usage:
setCamera().setModel().render() with a pose to generate a SimulatorFrame.Important aspects:
Example:
Public Types | |
| enum | LabelMode { FaceLabel = 0 , VertexLabel = 1 } |
| Source of labels to use for creating the label maps. More... | |
Public Member Functions | |
| SimulatorRenderer () | |
| Constructs a SimulatorRenderer. | |
| ~SimulatorRenderer () | |
| Destructor. | |
| void | setCamera (RGBDDataComponent *camera) |
| Sets the camera configuration. | |
| RGBDDataComponent * | camera () const |
| Returns the current camera configuration. | |
| void | setModel (const std::vector< Mesh * > &meshes) |
| Sets the 3D model(s) to be rendered. | |
| std::vector< Mesh * > | model () const |
| Returns the current 3D model(s). | |
| void | setLabelMode (LabelMode mode) |
| Sets the source of label for creating the semantic segmentation image. | |
| LabelMode | labelMode () const |
| Returns the source of label for creating the semantic segmentation image. | |
| void | setRenderSurfaceCoordinates (bool value) |
| Enables or disables rendering of surface coordinates (xyz maps). | |
| bool | renderSurfaceCoordinates () const |
| Returns whether rendering of surface coordinates is enabled. | |
| std::unique_ptr< SimulatorFrame > | render (const mat4 &T) |
| Renders a frame from the current model and camera at the given pose. | |
| enum LabelMode |
|
inline |
Sets the source of label for creating the semantic segmentation image.
The mode is not updated if the provided value is incompatible.
| std::unique_ptr< SimulatorFrame > render | ( | const mat4 & | T | ) |
Renders a frame from the current model and camera at the given pose.