21 #include "vtkImageData.h" 58 void VideoRecorder::newFrameSlot()
60 if (!mSource->validData())
63 double timestamp = mSource->getTimestamp();
68 report(QString(
"VideoRecorder found and corrected sync shift: %1 s").arg(
double(mSyncShift)/1000, 6,
'f', 3));
80 frame->DeepCopy(mSource->getVtkImageData());
82 mData[timestamp] = frame;
107 retval.erase(retval.begin(), retval.lower_bound(start));
108 retval.erase(retval.upper_bound(stop), retval.end());
VideoRecorder(VideoSourcePtr source, bool sync=true)
double getMilliSecondsSinceEpoch()
std::map< double, vtkImageDataPtr > DataType
<timestamp, frame>
virtual void startRecord()
virtual DataType getRecording(double start, double stop)
virtual void stopRecord()
boost::shared_ptr< class VideoSource > VideoSourcePtr
void newFrame()
emitted when a new frame has arrived (getVtkImageData() returns something new). info/status/name/vali...
Namespace for all CustusX production code.