/* * TI Voxel Lib component. * * Copyright (c) 2014 Texas Instruments Inc. */ #ifndef VOXEL_TOF_DEPTH_FRAME_GENERATOR_H #define VOXEL_TOF_DEPTH_FRAME_GENERATOR_H #include #include #include "ToFFrameGenerator.h" namespace Voxel { namespace TI { class TI3DTOF_EXPORT ToFDepthFrameGenerator: public DepthFrameGenerator { float _amplitudeScalingFactor, _depthScalingFactor; FramePtr _intermediate; ToFFrameGeneratorPtr _tofFrameGenerator; virtual bool _onReadConfiguration(); virtual bool _onWriteConfiguration(); public: ToFDepthFrameGenerator(); virtual bool generate(const FramePtr &in, FramePtr &out); bool setParameters(float amplitudeScalingFactor, float depthScalingFactor); virtual bool setProcessedFrameGenerator(FrameGeneratorPtr &p); virtual ~ToFDepthFrameGenerator() {} }; } } #endif