Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PeTrack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pedestrian Dynamics Empiricism
PeTrack
Commits
4c9dd4dd
Commit
4c9dd4dd
authored
4 years ago
by
Ann Katrin
Browse files
Options
Downloads
Patches
Plain Diff
move tp.markerID between tp.color and tp.size + restruct code
parent
c013e1a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/tracker.h
+9
-14
9 additions, 14 deletions
include/tracker.h
with
9 additions
and
14 deletions
include/tracker.h
+
9
−
14
View file @
4c9dd4dd
...
...
@@ -357,13 +357,12 @@ inline QTextStream& operator>>(QTextStream& s, TrackPerson& tp)
trjInfoLine
>>
col
;
tp
.
setColor
(
col
);
//cout << " col: " << tp.color();
trjInfoLine
>>
n
;
// size of list
if
(
Petrack
::
trcVersion
>
3
)
{
trjInfoLine
>>
markerID
;
tp
.
setMarkerID
(
markerID
);
}
trjInfoLine
>>
n
;
// size of list
if
(
Petrack
::
trcVersion
>
2
)
// Reading the comment line
{
//s.skipWhiteSpace(); // skip white spaces for reading the comment line without this the reading makes some problems
...
...
@@ -386,15 +385,13 @@ inline QTextStream& operator>>(QTextStream& s, TrackPerson& tp)
inline
QTextStream
&
operator
<<
(
QTextStream
&
s
,
const
TrackPerson
&
tp
)
{
s
<<
tp
.
nr
()
<<
" "
<<
tp
.
height
()
<<
" "
<<
tp
.
firstFrame
()
<<
" "
<<
tp
.
lastFrame
()
<<
" "
<<
tp
.
colCount
()
<<
" "
<<
tp
.
color
();
if
(
Petrack
::
trcVersion
>
3
)
{
s
<<
tp
.
nr
()
<<
" "
<<
tp
.
height
()
<<
" "
<<
tp
.
firstFrame
()
<<
" "
<<
tp
.
lastFrame
()
<<
" "
<<
tp
.
colCount
()
<<
" "
<<
tp
.
color
()
<<
" "
<<
tp
.
size
()
<<
" "
<<
tp
.
getMarkerID
()
<<
endl
;
s
<<
" "
<<
tp
.
getMarkerID
();
}
else
if
(
Petrack
::
trcVersion
<=
3
)
{
s
<<
tp
.
nr
()
<<
" "
<<
tp
.
height
()
<<
" "
<<
tp
.
firstFrame
()
<<
" "
<<
tp
.
lastFrame
()
<<
" "
<<
tp
.
colCount
()
<<
" "
<<
tp
.
color
()
<<
" "
<<
tp
.
size
()
<<
endl
;
}
s
<<
tp
.
comment
()
<<
endl
;
s
<<
" "
<<
tp
.
size
();
s
<<
endl
<<
tp
.
comment
()
<<
endl
;
for
(
int
i
=
0
;
i
<
tp
.
size
();
++
i
)
s
<<
tp
.
at
(
i
)
<<
endl
;
return
s
;
...
...
@@ -402,15 +399,13 @@ inline QTextStream& operator<<(QTextStream& s, const TrackPerson& tp)
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
TrackPerson
&
tp
)
{
s
<<
tp
.
nr
()
<<
" "
<<
tp
.
height
()
<<
" "
<<
tp
.
firstFrame
()
<<
" "
<<
tp
.
lastFrame
()
<<
" "
<<
tp
.
colCount
()
<<
" "
<<
tp
.
color
();
if
(
Petrack
::
trcVersion
>
3
)
{
s
<<
tp
.
nr
()
<<
" "
<<
tp
.
height
()
<<
" "
<<
tp
.
firstFrame
()
<<
" "
<<
tp
.
lastFrame
()
<<
" "
<<
tp
.
colCount
()
<<
" "
<<
tp
.
color
()
<<
" "
<<
tp
.
size
()
<<
" "
<<
tp
.
getMarkerID
()
<<
endl
;
}
else
if
(
Petrack
::
trcVersion
<=
3
)
{
s
<<
tp
.
nr
()
<<
" "
<<
tp
.
height
()
<<
" "
<<
tp
.
firstFrame
()
<<
" "
<<
tp
.
lastFrame
()
<<
" "
<<
tp
.
colCount
()
<<
" "
<<
tp
.
color
()
<<
" "
<<
tp
.
size
()
<<
endl
;
s
<<
" "
<<
tp
.
getMarkerID
();
}
s
<<
tp
.
comment
()
<<
endl
;
s
<<
" "
<<
tp
.
size
();
s
<<
endl
<<
tp
.
comment
()
<<
endl
;
for
(
int
i
=
0
;
i
<
tp
.
size
();
++
i
)
s
<<
tp
.
at
(
i
)
<<
endl
;
return
s
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment