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) ...@@ -21,8 +21,8 @@ Synchronizer::Synchronizer(QObject* parent)
this, SLOT(synchronize())); this, SLOT(synchronize()));
timer->start(userSynchronizeMs); timer->start(userSynchronizeMs);
} }
emptyEyeData.timestamp = -1; emptyEyeData.timestamp = emptyEyeData.processingTimestamp = -1;
emptyFieldData.timestamp = -1; emptyFieldData.timestamp = emptyFieldData.processingTimestamp = -1;
} }
template <class T> template <class T>
......
...@@ -18,7 +18,7 @@ public: ...@@ -18,7 +18,7 @@ public:
: minPupilConfidence(0.66f) : minPupilConfidence(0.66f)
{ {
} }
virtual ~GazeEstimationMethod() {} virtual ~GazeEstimationMethod() = default;
enum InputType { enum InputType {
BINOCULAR = 1, BINOCULAR = 1,
......
...@@ -21,8 +21,7 @@ public: ...@@ -21,8 +21,7 @@ public:
} }
TrackedPupil() TrackedPupil()
: Pupil() : TrackedPupil(0, Pupil())
, ts(0)
{ {
} }
...@@ -31,7 +30,7 @@ public: ...@@ -31,7 +30,7 @@ public:
class PupilTrackingMethod { class PupilTrackingMethod {
public: public:
virtual ~PupilTrackingMethod() {} virtual ~PupilTrackingMethod() = default;
// Tracking and detection logic // 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); 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