-
Notifications
You must be signed in to change notification settings - Fork 0
/
DrawTimestampRawData.cpp
executable file
·30 lines (26 loc) · 1.07 KB
/
DrawTimestampRawData.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* @file DrawTimestampRawData.cpp
* @ingroup Drawing
* @author Dominique Vaufreydaz, Grenoble Alpes University, Inria
* @copyright All right reserved.
*/
#include "DrawTimestampRawData.h"
using namespace cv;
using namespace MobileRGBD;
/** @brief constructor. Draw the telemeter in the image. Default drawing mode is PointToLine.
* @param WorkingFile [in] Timestamp file to read.
* @param RawFile [in] Raw file to read if any (Default = "").
* @param SizeOfFrame [in] SizeOfFrame inside the raw file. (Default = 0 => can be set later);
*/
DrawTimestampRawData::DrawTimestampRawData( const std::string &WorkingFile, const std::string& RawFile /* = "" */, int SizeOfFrame /* = 0 */ )
: ReadTimestampRawFile( WorkingFile, RawFile, SizeOfFrame )
{
}
/** @brief Draw data in image. Will call the Process function.
* @param WhereToDraw [in] Drawing cv::Mat.
* @param pTimestamp [in] Timestamp of the data.
*/
bool DrawTimestampRawData::Draw( Mat& WhereToDraw, const TimeB &RequestTimestamp )
{
return Process( RequestTimestamp, (void*)&WhereToDraw );
}