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
cdf3fd9d
Commit
cdf3fd9d
authored
Dec 17, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交打印
parent
7bc45f37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
BaseTracker.h
BaseTracker/BaseTracker.h
+6
-0
Component.cpp
common/Component.cpp
+15
-0
Component.h
common/Component.h
+1
-0
No files found.
BaseTracker/BaseTracker.h
View file @
cdf3fd9d
...
...
@@ -108,9 +108,15 @@ int BaseTracker<T>::Run(const std::vector<std::vector<float> >& detections, std:
detectionsId
[
match
.
second
]
=
id
;
updateId
[
id
]
=
match
.
second
;
}
SDK_LOG
(
SDK_INFO
,
"Z = [%s]"
,
GetMatrixStr
(
Z
.
get
(),
no
,
bs
);
SDK_LOG
(
SDK_INFO
,
"X = [%s]"
,
GetMatrixStr
(
X
.
get
(),
ns
,
bs
);
SDK_LOG
(
SDK_INFO
,
"P = [%s]"
,
GetMatrixStr
(
P
.
get
(),
ns
*
ns
,
bs
);
SDK_LOG
(
SDK_INFO
,
"HX = [%s]"
,
GetMatrixStr
(
HX
.
get
(),
no
,
bs
);
#ifdef _KF_IOU_CUDA_
kalman_update_batch
(
Z
.
get
(),
X
.
get
(),
P
.
get
(),
HX
.
get
(),
bs
,
ns
,
no
);
#endif
SDK_LOG
(
SDK_INFO
,
"after X = [%s]"
,
GetMatrixStr
(
X
.
get
(),
ns
,
bs
);
SDK_LOG
(
SDK_INFO
,
"after P = [%s]"
,
GetMatrixStr
(
P
.
get
(),
ns
*
ns
,
bs
);
}
/*** Create new tracks for unmatched detections ***/
...
...
common/Component.cpp
View file @
cdf3fd9d
...
...
@@ -41,3 +41,18 @@ std::string GetMatrixStr(const std::vector<std::vector<float>>& data_ptr, int co
}
return
str
;
}
std
::
string
GetMatrixStr
(
float
**
data_ptr
,
int
col
,
int
row
)
{
std
::
string
str
;
for
(
int
i
=
0
;
i
<
row
;
i
++
)
{
for
(
int
j
=
0
;
j
<
col
;
j
++
)
{
char
log
[
128
]
=
{};
sprintf
(
log
,
"%f,"
,
data_ptr
[
i
][
j
]);
str
+=
log
;
}
}
return
str
;
}
common/Component.h
View file @
cdf3fd9d
...
...
@@ -7,3 +7,4 @@ uint64_t GetCurTime();
std
::
string
GetMatrixStr
(
const
float
*
data_ptr
,
int
col
,
int
row
);
std
::
string
GetMatrixStr
(
const
std
::
vector
<
std
::
vector
<
float
>>&
data_ptr
,
int
col
,
int
row
);
std
::
string
GetMatrixStr
(
float
**
data_ptr
,
int
col
,
int
row
);
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