Commit 04aa48b5 authored by Thiago Santini's avatar Thiago Santini

Sets empty processing timestamp to -1 to avoid poluting the Journal

parent 39a8a79e
......@@ -21,8 +21,8 @@ Synchronizer::Synchronizer(QObject* parent)
this, SLOT(synchronize()));
timer->start(userSynchronizeMs);
}
emptyEyeData.timestamp = -1;
emptyFieldData.timestamp = -1;
emptyEyeData.timestamp = emptyEyeData.processingTimestamp = -1;
emptyFieldData.timestamp = emptyFieldData.processingTimestamp = -1;
}
template <class T>
......
......@@ -18,7 +18,7 @@ public:
: minPupilConfidence(0.66f)
{
}
virtual ~GazeEstimationMethod() {}
virtual ~GazeEstimationMethod() = default;
enum InputType {
BINOCULAR = 1,
......
......@@ -21,8 +21,7 @@ public:
}
TrackedPupil()
: Pupil()
, ts(0)
: TrackedPupil(0, Pupil())
{
}
......@@ -31,7 +30,7 @@ public:
class PupilTrackingMethod {
public:
virtual ~PupilTrackingMethod() {}
virtual ~PupilTrackingMethod() = default;
// Tracking and detection logic
virtual void detectAndTrack(const Timestamp& ts, const cv::Mat& frame, const cv::Rect& roi, Pupil& pupil, std::shared_ptr<PupilDetectionMethod> pupilDetectionMethod = nullptr, const float& minPupilDiameterPx = -1, const float& maxPupilDiameterPx = -1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment