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
465ef35e
Commit
465ef35e
authored
Dec 21, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交gpu没有更新变量的问题
parent
029344bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
BaseTrack.cpp
BaseTracker/BaseTrack.cpp
+10
-0
BaseTrack.h
BaseTracker/BaseTrack.h
+1
-0
BaseTracker.h
BaseTracker/BaseTracker.h
+1
-0
No files found.
BaseTracker/BaseTrack.cpp
View file @
465ef35e
...
...
@@ -48,6 +48,16 @@ void BaseTrack::Update(const std::vector<float>& data)
observation
(
i
)
=
data
[
i
];
kf_
->
Update
(
observation
);
}
void
BaseTrack
::
UpdateHit
()
{
if
(
kf_
==
nullptr
)
return
;
// get measurement update, reset coast cycle count
coast_cycles_
=
0
;
// accumulate hit streak count
hit_streak_
++
;
}
int
BaseTrack
::
GetStateData
(
std
::
vector
<
float
>&
data
)
{
if
(
kf_
==
nullptr
)
...
...
BaseTracker/BaseTrack.h
View file @
465ef35e
...
...
@@ -18,6 +18,7 @@ public:
virtual
void
Init
(
const
std
::
vector
<
float
>&
data
);
virtual
void
Predict
();
virtual
void
Update
(
const
std
::
vector
<
float
>&
data
);
virtual
void
UpdateHit
();
virtual
int
GetStateData
(
std
::
vector
<
float
>&
data
);
virtual
float
GetNIS
()
const
;
virtual
float
GetProb
()
const
;
...
...
BaseTracker/BaseTracker.h
View file @
465ef35e
...
...
@@ -105,6 +105,7 @@ int BaseTracker<T>::Run(const std::vector<std::vector<float> >& detections, std:
ns
=
m_tracker
[
id
]
->
GetStatesNum
();
}
bs_i
++
;
m_tracker
[
id
]
->
UpdateHit
();
//gpu时需要update里面的变量
detectionsId
[
match
.
second
]
=
id
;
updateId
[
id
]
=
match
.
second
;
}
...
...
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