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
24f30b77
Commit
24f30b77
authored
Dec 28, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
e4002a61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
Track3D.cpp
BaseTracker/Track3D.cpp
+12
-1
No files found.
BaseTracker/Track3D.cpp
View file @
24f30b77
...
...
@@ -181,6 +181,17 @@ double calcIntersectionArea(cv::RotatedRect rect1, cv::RotatedRect rect2)
double
Track3D
::
CalculateIou
(
const
std
::
vector
<
float
>&
data
)
{
if
(
data
.
size
()
!=
8
)
{
SDK_LOG
(
SDK_INFO
,
"CalculateIou data size != 8"
);
return
0.0
f
;
}
if
(
m_obj
==
nullptr
)
return
0.0
f
;
int
input_type
=
data
[
0
];
int
obj_type
=
m_obj
->
type
;
if
(
input_type
!=
obj_type
)
return
0.0
f
;
std
::
vector
<
float
>
states
;
GetStateData
(
states
);
...
...
@@ -191,7 +202,7 @@ double Track3D::CalculateIou(const std::vector<float>& data)
cv
::
RotatedRect
rect1
=
cv
::
RotatedRect
(
cv
::
Point2f
(
states
[
0
],
states
[
1
]),
cv
::
Size2f
(
states
[
4
],
states
[
5
]),
states
[
3
]
*
180
/
3.1415926
);
cv
::
RotatedRect
rect2
=
cv
::
RotatedRect
(
cv
::
Point2f
(
data
[
0
],
data
[
1
]),
cv
::
Size2f
(
data
[
4
],
data
[
5
]),
data
[
3
]
*
180
/
3.1415926
);
cv
::
RotatedRect
rect2
=
cv
::
RotatedRect
(
cv
::
Point2f
(
data
[
1
],
data
[
2
]),
cv
::
Size2f
(
data
[
5
],
data
[
6
]),
data
[
4
]
*
180
/
3.1415926
);
uint64_t
begin
=
GetCurTime
();
double
iou_3d
=
0.0
f
;
...
...
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