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
e58008d4
Commit
e58008d4
authored
4 years ago
by
Ann Katrin
Browse files
Options
Downloads
Plain Diff
Merge branch '65-rearange-order-of-inputs-in-trc-output' into 'master'
Resolve "Rearange Order of Input in trc Output" Closes
#65
See merge request
!42
parents
8d9f1b10
771eaa59
No related branches found
No related tags found
1 merge request
!42
Resolve "Rearange Order of Input in trc Output"
Pipeline
#24818
passed
4 years ago
Stage: build_environment
Stage: build
Stage: test
Changes
1
Pipelines
2
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 @
e58008d4
...
...
@@ -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