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
a3b94d41
Commit
a3b94d41
authored
Dec 27, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
6799e921
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
BaseTracker.h
BaseTracker/BaseTracker.h
+12
-2
Track3D.cpp
BaseTracker/Track3D.cpp
+6
-0
Track3D.h
BaseTracker/Track3D.h
+2
-0
No files found.
BaseTracker/BaseTracker.h
View file @
a3b94d41
...
...
@@ -265,12 +265,22 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
std
::
shared_ptr
<
float
>
detect_ptr
=
std
::
shared_ptr
<
float
>
(
new
float
[
detect_size
],
[](
float
*
p
)
{
if
(
p
)
delete
[]
p
;
p
=
nullptr
;
});
std
::
shared_ptr
<
float
>
tracker_ptr
=
std
::
shared_ptr
<
float
>
(
new
float
[
tracker_size
],
[](
float
*
p
)
{
if
(
p
)
delete
[]
p
;
p
=
nullptr
;
});
std
::
shared_ptr
<
float
>
iou_ptr
=
std
::
shared_ptr
<
float
>
(
new
float
[
iou_size
],
[](
float
*
p
)
{
if
(
p
)
delete
[]
p
;
p
=
nullptr
;
});
std
::
vector
<
int
>
det_type
;
for
(
int
i
=
0
;
i
<
detections
.
size
();
i
++
)
{
for
(
int
j
=
0
;
j
<
measure_size
;
j
++
)
std
::
vector
<
float
>
out
;
int
ob_type
=
0
;
T
::
MeasureData
(
detections
[
i
],
out
,
ob_type
);
for
(
int
j
=
0
;
j
<
out
.
size
();
j
++
)
{
detect_ptr
.
get
()[
i
*
measure_size
+
j
]
=
detections
[
i
][
iouOrder
[
j
]
];
detect_ptr
.
get
()[
i
*
measure_size
+
j
]
=
out
[
j
];
}
det_type
.
push_back
(
ob_type
);
//for (int j = 0; j < measure_size; j++)
//{
// detect_ptr.get()[i * measure_size + j] = detections[i][iouOrder[j]];
//}
}
for
(
int
i
=
0
;
i
<
tracker_states
.
size
();
i
++
)
{
...
...
BaseTracker/Track3D.cpp
View file @
a3b94d41
...
...
@@ -355,3 +355,9 @@ void Track3D::SetValues(std::vector<float>& data)
0
,
0
,
0
,
0
,
0
,
0
,
1
;
}
void
Track3D
::
MeasureData
(
const
std
::
vector
<
float
>&
input
,
std
::
vector
<
float
>&
out
,
int
&
obj_type
)
{
}
BaseTracker/Track3D.h
View file @
a3b94d41
...
...
@@ -45,6 +45,8 @@ public:
virtual
void
SetValues
(
std
::
vector
<
float
>&
data
);
static
void
MeasureData
(
const
std
::
vector
<
float
>&
input
,
std
::
vector
<
float
>&
out
,
int
&
obj_type
);
trackOjbPtr
m_obj
=
nullptr
;
std
::
vector
<
point2d
>
m_points
;
//保存最近的5个移动的点位
...
...
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