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
e3f8be00
Commit
e3f8be00
authored
May 17, 2023
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入计算iou时是否用type类型参与计算,使用宏来控制。
parent
b6ee7af0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
Track3D.cpp
BaseTracker/Track3D.cpp
+11
-1
No files found.
BaseTracker/Track3D.cpp
View file @
e3f8be00
...
...
@@ -207,10 +207,13 @@ double Track3D::CalculateIou(const std::vector<float>& data)
}
if
(
m_obj
==
nullptr
)
return
0.0
f
;
#ifdef _CALC_IOU_NO_TYPE_
#else
int
input_type
=
data
[
0
];
int
obj_type
=
m_obj
->
type
;
if
(
input_type
!=
obj_type
)
return
0.0
f
;
#endif
std
::
vector
<
float
>
states
;
GetStateData
(
states
);
...
...
@@ -445,8 +448,11 @@ int Track3D::GetIouData(std::vector<float>& data, int& obj_type)
data
.
push_back
(
kf_
->
x_
[
5
]);
data
.
push_back
(
kf_
->
x_
[
6
]);
data
.
push_back
(
kf_
->
x_
[
3
]);
#ifdef _CALC_IOU_NO_TYPE_
obj_type
=
0
;
#else
obj_type
=
m_obj
->
type
;
#endif
return
0
;
}
...
...
@@ -457,7 +463,11 @@ void Track3D::MeasureIouData(const std::vector<float>& input, std::vector<float>
SDK_LOG
(
SDK_INFO
,
"input is not 9"
);
return
;
}
#ifdef _CALC_IOU_NO_TYPE_
obj_type
=
0
;
#else
obj_type
=
input
[
0
];
#endif
out
.
push_back
(
input
[
1
]);
out
.
push_back
(
input
[
2
]);
out
.
push_back
(
input
[
3
]);
...
...
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