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
3e3215bb
Commit
3e3215bb
authored
Jun 27, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c03b5980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Track3DEx.cpp
ros2/Track3DEx.cpp
+10
-3
No files found.
ros2/Track3DEx.cpp
View file @
3e3215bb
...
...
@@ -98,17 +98,24 @@ double Track3DEx::CalculateIou(const std::vector<float>& data)
int
obj_cameraId
=
m_obj
->
cameraId
;
int
obj_trackingId
=
m_obj
->
trackingId
;
if
(
obj_cameraId
>
0
&&
obj_trackingId
>
0
)
if
(
input_dataSource
==
obj_dataSource
&&
obj_cameraId
>
0
&&
obj_trackingId
>
0
)
{
if
(
obj_cameraId
==
input_cameraId
&&
input_trackingId
==
obj_trackingId
)
{
return
1.0
f
;
}
}
else
if
(
obj_cameraId
>
0
&&
obj_trackingId
>
0
)
{
if
(
obj_cameraId
==
input_cameraId
&&
input_trackingId
==
obj_trackingId
)
{
return
0.1
f
;
}
}
int
input_type
=
data
[
0
];
int
obj_type
=
m_obj
->
type
;
if
(
input_type
!=
obj_type
)
return
0.0
f
;
//
if (input_type != obj_type)
//
return 0.0f;
std
::
vector
<
float
>
states
;
GetStateData
(
states
);
...
...
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