![]() |
ImFusion SDK 4.3
|
#include <RGBD/Include/ImFusion/RGBD/RGBDReconstructionAlgorithm.h>
Callback interface for RGBDReconstructionAlgorithm events. More...
Callback interface for RGBDReconstructionAlgorithm events.
Allows custom handling before and after frame processing during reconstruction.
Public Member Functions | |
| virtual bool | preProcessFrame (int sensor, RGBDFrame *frame) |
| Called before a frame is passed to the reconstruction. Return true to use frame, false to drop it. | |
| virtual void | onProcessedFrame (int sensor, int status, bool stablePose, bool trackLost, SharedImage *imgScene, RGBDFrame *frame)=0 |
| Called when a frame has been processed by the reconstruction. | |
|
pure virtual |
Called when a frame has been processed by the reconstruction.
All pointers are only valid during the duration of the call. Processing time of the callback should be kept to a minimum to avoid blocking the reconstruction.
| sensor | Index of sensor from which frame was added. |
| status | Status code. Values smaller than 0 indicate an error, 0 indicates that the frame was added to the reconstruction, 1 indicates that the frame was successfully processed but not added to the reconstruction. |
| stablePose | Indicates whether the frame pose is considered to be stable. |
| trackLost | Indicates whether tracking is lost. |
| imgScene | Image containing a preview of the reconstruction. |
| frame | RGB-D frame container containing the used images as well as the tracked pose. |