Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thiago Santini
EyeRecToo
Commits
04aa48b5
Commit
04aa48b5
authored
Jan 17, 2019
by
Thiago Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sets empty processing timestamp to -1 to avoid poluting the Journal
parent
39a8a79e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
EyeRecToo/src/Synchronizer.cpp
EyeRecToo/src/Synchronizer.cpp
+2
-2
EyeRecToo/src/gaze-estimation/GazeEstimationMethod.h
EyeRecToo/src/gaze-estimation/GazeEstimationMethod.h
+1
-1
EyeRecToo/src/pupil-tracking/PupilTrackingMethod.h
EyeRecToo/src/pupil-tracking/PupilTrackingMethod.h
+2
-3
No files found.
EyeRecToo/src/Synchronizer.cpp
View file @
04aa48b5
...
@@ -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
>
...
...
EyeRecToo/src/gaze-estimation/GazeEstimationMethod.h
View file @
04aa48b5
...
@@ -18,7 +18,7 @@ public:
...
@@ -18,7 +18,7 @@ public:
:
minPupilConfidence
(
0.66
f
)
:
minPupilConfidence
(
0.66
f
)
{
{
}
}
virtual
~
GazeEstimationMethod
()
{}
virtual
~
GazeEstimationMethod
()
=
default
;
enum
InputType
{
enum
InputType
{
BINOCULAR
=
1
,
BINOCULAR
=
1
,
...
...
EyeRecToo/src/pupil-tracking/PupilTrackingMethod.h
View file @
04aa48b5
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment