From d0a2651b7f260d6846aa209fe31ea27ffc8fefda Mon Sep 17 00:00:00 2001 From: Praveen Palanisamy Date: Fri, 26 Apr 2019 04:57:22 -0400 Subject: [PATCH] Removed indirection op to be compatible with OpenCV 3+ --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 32dea07..74795e2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -352,12 +352,12 @@ if (firstFrame) float dvy=0.01f;//1.0 float dx=1.0f; float dy=1.0f; - KF0.transitionMatrix = *(Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); - KF1.transitionMatrix = *(Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); - KF2.transitionMatrix = *(Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); - KF3.transitionMatrix = *(Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); - KF4.transitionMatrix = *(Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); - KF5.transitionMatrix = *(Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); + KF0.transitionMatrix = (Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); + KF1.transitionMatrix = (Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); + KF2.transitionMatrix = (Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); + KF3.transitionMatrix = (Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); + KF4.transitionMatrix = (Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); + KF5.transitionMatrix = (Mat_(4, 4) << dx,0,1,0, 0,dy,0,1, 0,0,dvx,0, 0,0,0,dvy); cv::setIdentity(KF0.measurementMatrix); cv::setIdentity(KF1.measurementMatrix);