From a4ab3f4ea8762d9267e123eb76149ab66f84ab97 Mon Sep 17 00:00:00 2001 From: Jin Ma Date: Mon, 9 Sep 2013 17:00:33 +0800 Subject: [PATCH] Removed whitespace. --- modules/ocl/src/kalman.cpp | 6 +++--- modules/ocl/test/test_kalman.cpp | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/ocl/src/kalman.cpp b/modules/ocl/src/kalman.cpp index 2ee7f96567..8a5b0d4c2c 100644 --- a/modules/ocl/src/kalman.cpp +++ b/modules/ocl/src/kalman.cpp @@ -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); diff --git a/modules/ocl/test/test_kalman.cpp b/modules/ocl/test/test_kalman.cpp index db3f19e872..13f9d0b81b 100644 --- a/modules/ocl/test/test_kalman.cpp +++ b/modules/ocl/test/test_kalman.cpp @@ -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