Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_kalman_filter_src
Commits
3e1a7d8d
Commit
3e1a7d8d
authored
Dec 17, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
51aa4fa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
BaseTrack.cpp
BaseTracker/BaseTrack.cpp
+1
-1
BaseTracker.h
BaseTracker/BaseTracker.h
+21
-0
No files found.
BaseTracker/BaseTrack.cpp
View file @
3e1a7d8d
...
...
@@ -74,7 +74,7 @@ bool BaseTrack::IsLost()
}
int
BaseTrack
::
GetMeasureData
(
std
::
vector
<
float
>&
data
)
{
if
(
kf_
==
nullptr
)
if
(
kf_
==
nullptr
||
m_num_obs
>
m_num_states
)
return
-
1
;
data
.
clear
();
for
(
int
i
=
0
;
i
<
m_num_obs
;
i
++
)
...
...
BaseTracker/BaseTracker.h
View file @
3e1a7d8d
...
...
@@ -180,6 +180,23 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
j
++
;
}
}
std
::
string
dete_str
=
GetMatrixStr
(
detections
,
detections
.
size
(),
detections
.
size
()
>
0
?
detections
[
0
].
size
()
:
0
);
std
::
vector
<
std
::
vector
<
float
>
>
tracker_states
;
for
(
auto
&
iter
:
tracks
)
{
std
::
vector
<
float
>
measure
;
if
(
iter
.
second
->
GetMeasureData
(
measure
)
==
0
)
{
tracker_states
.
emplace_back
(
measure
);
}
else
{
SDK_LOG
(
SDK_INFO
,
"GetMeasureData failed"
);
}
}
std
::
string
track_str
=
GetMatrixStr
(
tracker_states
,
tracker_states
.
size
(),
tracker_states
.
size
()
>
0
?
tracker_states
[
0
].
size
()
:
0
);
SDK_LOG
(
SDK_INFO
,
"detections = [%s]"
,
dete_str
.
c_str
());
SDK_LOG
(
SDK_INFO
,
"tracker_states = [%s]"
,
track_str
.
c_str
());
}
else
{
...
...
@@ -191,6 +208,10 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
{
tracker_states
.
emplace_back
(
measure
);
}
else
{
SDK_LOG
(
SDK_INFO
,
"GetMeasureData failed"
);
}
}
int
measure_size
=
detections
.
size
()
>
0
?
detections
[
0
].
size
()
:
0
;
int
tra_size
=
tracker_states
.
size
()
>
0
?
tracker_states
[
0
].
size
()
:
0
;
...
...
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