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);