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
7672746b
Commit
7672746b
authored
Dec 22, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交数据修正逻辑
parent
a23cc450
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
1 deletion
+15
-1
BaseTrack.cpp
BaseTracker/BaseTrack.cpp
+4
-0
BaseTrack.h
BaseTracker/BaseTrack.h
+1
-0
BaseTracker.h
BaseTracker/BaseTracker.h
+3
-1
Track3D.cpp
BaseTracker/Track3D.cpp
+5
-0
Track3D.h
BaseTracker/Track3D.h
+2
-0
No files found.
BaseTracker/BaseTrack.cpp
View file @
7672746b
...
...
@@ -47,6 +47,10 @@ void BaseTrack::Update(const std::vector<float>& data)
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++
)
observation
(
i
)
=
data
[
i
];
kf_
->
Update
(
observation
);
}
void
BaseTrack
::
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
)
{
}
void
BaseTrack
::
UpdateHit
()
{
...
...
BaseTracker/BaseTrack.h
View file @
7672746b
...
...
@@ -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
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
);
//对于输入数据进行修正
virtual
void
UpdateHit
();
virtual
int
GetStateData
(
std
::
vector
<
float
>&
data
);
virtual
int
GetPredictData
(
std
::
vector
<
float
>&
data
);
...
...
BaseTracker/BaseTracker.h
View file @
7672746b
...
...
@@ -94,10 +94,12 @@ int BaseTracker<T>::Run(const std::vector<std::vector<float> >& detections, std:
for
(
const
auto
&
match
:
matched
)
{
const
auto
&
id
=
match
.
first
;
std
::
vector
<
float
>
cre_det
;
m_tracker
[
id
]
->
UpdateDataCheck
(
detections
[
match
.
second
],
cre_det
);
float
*
ptr_Z
=
Z
.
get
()
+
bs_i
*
no
;
for
(
int
i
=
0
;
i
<
no
;
i
++
)
{
ptr_Z
[
i
]
=
detections
[
match
.
second
]
[
i
];
ptr_Z
[
i
]
=
cre_det
[
i
];
}
X
.
get
()[
bs_i
]
=
m_tracker
[
id
]
->
GetStatesXPtr
();
P
.
get
()[
bs_i
]
=
m_tracker
[
id
]
->
GetPredictPtr
();
...
...
BaseTracker/Track3D.cpp
View file @
7672746b
...
...
@@ -215,3 +215,7 @@ int Track3D::GetKFDataOrder(std::vector<int>& order)
order
.
push_back
(
6
);
return
0
;
}
void
Track3D
::
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
)
{
}
\ No newline at end of file
BaseTracker/Track3D.h
View file @
7672746b
...
...
@@ -24,5 +24,7 @@ public:
virtual
int
GetIouDataOrder
(
std
::
vector
<
int
>&
order
);
virtual
int
GetKFDataOrder
(
std
::
vector
<
int
>&
order
);
virtual
void
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
);
//对于输入数据进行修正
trackOjbPtr
m_obj
=
nullptr
;
};
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