ImFusion SDK 4.3
RGBDReconstructionCallback Class Referenceabstract

#include <RGBD/Include/ImFusion/RGBD/RGBDReconstructionAlgorithm.h>

Callback interface for RGBDReconstructionAlgorithm events. More...

Detailed Description

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.
 

Member Function Documentation

◆ onProcessedFrame()

virtual void onProcessedFrame ( int sensor,
int status,
bool stablePose,
bool trackLost,
SharedImage * imgScene,
RGBDFrame * frame )
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.

Parameters
sensorIndex of sensor from which frame was added.
statusStatus 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.
stablePoseIndicates whether the frame pose is considered to be stable.
trackLostIndicates whether tracking is lost.
imgSceneImage containing a preview of the reconstruction.
frameRGB-D frame container containing the used images as well as the tracked pose.

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close