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
39e17709
Commit
39e17709
authored
Dec 15, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交测试
parent
30f70cc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
BaseTracker.h
BaseTracker/BaseTracker.h
+23
-23
No files found.
BaseTracker/BaseTracker.h
View file @
39e17709
...
...
@@ -150,29 +150,29 @@ void BaseTracker<T>::AssociateDetectionsToTrackers(const std::vector<std::vector
}
else
{
std
::
vector
<
std
::
vector
<
float
>
>
tracker_states
;
for
(
auto
&
iter
:
tracks
)
{
std
::
vector
<
float
>
measure
;
if
(
iter
.
second
->
GetMeasureData
(
measure
)
==
0
)
{
tracker_states
.
emplace_back
(
measure
);
}
}
int
detect_size
=
detections
.
size
()
*
(
detections
.
size
()
>
0
?
detections
[
0
].
size
()
:
0
);
int
tracker_size
=
tracker_states
.
size
()
*
(
tracker_states
.
size
()
>
0
?
tracker_states
[
0
].
size
()
:
0
);
int
iou_size
=
detections
.
size
()
*
tracker_states
.
size
();
std
::
shared_ptr
<
float
>
detect_ptr
=
std
::
make_shared
<
float
>
(
new
float
[
detect_size
]);
std
::
shared_ptr
<
float
>
tracker_ptr
=
std
::
make_shared
<
float
>
(
new
float
[
tracker_size
]);
std
::
shared_ptr
<
float
>
iou_ptr
=
std
::
make_shared
<
float
>
(
new
float
[
iou_size
]);
//bev_overlap(detections.size(), detect_ptr.get(), tracker_states.size(), tracker_ptr.get(), iou_ptr.get());
for
(
int
i
=
0
;
i
<
detections
.
size
();
i
++
)
for
(
int
j
=
0
;
j
<
tracker_states
.
size
();
j
++
)
{
float
*
i_ptr
=
iou_ptr
.
get
();
iou_matrix
[
i
][
j
]
=
i_ptr
[
i
*
tracker_states
.
size
()
+
j
];
}
//
std::vector<std::vector<float> > tracker_states;
//
for (auto& iter : tracks)
//
{
//
std::vector<float> measure;
//
if (iter.second->GetMeasureData(measure) == 0)
//
{
//
tracker_states.emplace_back(measure);
//
}
//
}
//
int detect_size = detections.size() * (detections.size() > 0 ? detections[0].size() : 0);
//
int tracker_size = tracker_states.size() * (tracker_states.size() > 0 ? tracker_states[0].size() : 0);
//
int iou_size = detections.size() * tracker_states.size();
//
std::shared_ptr<float> detect_ptr = std::make_shared<float>(new float[detect_size]);
//
std::shared_ptr<float> tracker_ptr = std::make_shared<float>(new float[tracker_size]);
//
std::shared_ptr<float> iou_ptr = std::make_shared<float>(new float[iou_size]);
//
//
bev_overlap(detections.size(), detect_ptr.get(), tracker_states.size(), tracker_ptr.get(), iou_ptr.get());
//
for(int i = 0; i < detections.size(); i++)
//
for (int j = 0; j < tracker_states.size(); j++)
//
{
//
float* i_ptr = iou_ptr.get();
//
iou_matrix[i][j] = i_ptr[i * tracker_states.size() + j];
//
}
}
// Find association
...
...
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