Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
submodule
opencv
Commits
a4ab3f4e
Commit
a4ab3f4e
authored
Sep 09, 2013
by
Jin Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed whitespace.
parent
2d5a1dac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
kalman.cpp
modules/ocl/src/kalman.cpp
+3
-3
test_kalman.cpp
modules/ocl/test/test_kalman.cpp
+3
-3
No files found.
modules/ocl/src/kalman.cpp
View file @
a4ab3f4e
...
...
@@ -48,7 +48,7 @@ using namespace std;
using
namespace
cv
;
using
namespace
cv
::
ocl
;
KalmanFilter
::
KalmanFilter
()
KalmanFilter
::
KalmanFilter
()
{
}
...
...
@@ -66,7 +66,7 @@ void KalmanFilter::init(int DP, int MP, int CP, int type)
statePre
.
create
(
DP
,
1
,
type
);
statePre
.
setTo
(
Scalar
::
all
(
0
));
statePost
.
create
(
DP
,
1
,
type
);
statePost
.
setTo
(
Scalar
::
all
(
0
));
...
...
@@ -111,7 +111,7 @@ CV_EXPORTS const oclMat& KalmanFilter::predict(const oclMat& control)
gemm
(
transitionMatrix
,
statePost
,
1
,
oclMat
(),
0
,
statePre
);
oclMat
temp
;
if
(
control
.
data
)
if
(
control
.
data
)
gemm
(
controlMatrix
,
control
,
1
,
statePre
,
1
,
statePre
);
gemm
(
transitionMatrix
,
errorCovPost
,
1
,
oclMat
(),
0
,
temp1
);
gemm
(
temp1
,
transitionMatrix
,
1
,
processNoiseCov
,
1
,
errorCovPre
,
GEMM_2_T
);
...
...
modules/ocl/test/test_kalman.cpp
View file @
a4ab3f4e
...
...
@@ -96,7 +96,7 @@ TEST_P(Kalman, Accuracy)
kalman_filter_ocl
.
correct
(
Sample
);
//ocl end
//cpu start
//cpu start
cv
::
KalmanFilter
kalman_filter_cpu
;
kalman_filter_cpu
.
init
(
Dim
,
Dim
);
...
...
@@ -143,5 +143,4 @@ TEST_P(Kalman, Accuracy)
}
INSTANTIATE_TEST_CASE_P
(
OCL_Video
,
Kalman
,
Combine
(
Values
(
3
,
7
),
Values
(
30
)));
#endif // HAVE_OPENCL
#endif // HAVE_OPENCL
\ No newline at end of file
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