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
b585795c
Commit
b585795c
authored
Apr 01, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除3D计算
parent
e7f5d30d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
Track3D.cpp
BaseTracker/Track3D.cpp
+12
-12
No files found.
BaseTracker/Track3D.cpp
View file @
b585795c
...
...
@@ -245,18 +245,18 @@ double Track3D::CalculateIou(const std::vector<float>& data)
double
area
=
calcIntersectionArea
(
rect1
,
rect2
);
if
(
area
>
0
)
{
double
interHeight
=
0.0
f
;
double
tru_minz
=
states
[
2
]
-
states
[
5
]
/
2
;
double
tru_maxz
=
states
[
2
]
+
states
[
5
]
/
2
;
double
land_minz
=
data
[
3
]
-
data
[
6
]
/
2
;
double
land_maxz
=
data
[
3
]
+
data
[
6
]
/
2
;
if
(
land_maxz
<=
tru_maxz
&&
land_maxz
>=
tru_minz
)
{
interHeight
=
land_maxz
-
tru_minz
;
}
else
if
(
tru_maxz
<
land_maxz
&&
tru_maxz
>
land_minz
)
{
interHeight
=
tru_maxz
-
land_minz
;
}
//
double interHeight = 0.0f;
//
double tru_minz = states[2] - states[5] / 2;
//
double tru_maxz = states[2] + states[5] / 2;
//
double land_minz = data[3] - data[6] / 2;
//
double land_maxz = data[3] + data[6] / 2;
//
if (land_maxz <= tru_maxz && land_maxz >= tru_minz) {
//
interHeight = land_maxz - tru_minz;
//
}
//
else if (tru_maxz < land_maxz && tru_maxz > land_minz) {
//
interHeight = tru_maxz - land_minz;
//
}
if
(
1
)
//interHeight > 0)
{
//double inter3D = area * interHeight;
...
...
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