problem about kalman-Collection of common programming errors


  • CTZStef
    c++ ubuntu opencv kalman
    I can’t find the file I have to include to my code to get cvRand (and all other related functions, such as cvRandInit … ) to be recognized by the compiler. It’s weird,

  • gnat
    c++ opencv kalman
    I was using the OpenCV to predict the motion of a ball seen with a webcam. However I keep getting an error on the cvKalmanPredict state, so I simplify the code into these few lines and try to test the filter solely:CvKalman* kalman = cvCreateKalman(6,3,1);kalman->temp2 = cvCreateMat(1, 1, CV_32FC1);float alpha = 0.1, beta = 0.2;float kalmA[] = {1.0+t0/t1, 0, 0, -t0/t1, 0, 0,0, 1.0+t0/t1, 0, 0, -t0/t1, 0,0, 0, 1.0+t0/t1, 0, 0, -t0/t1,1, 0, 0, 0, 0, 0,0, 1, 0, 0, 0, 0,0, 0, 1, 0, 0, 0};float kalmB[] = {0, 0, 1, 0, 0, 0};float kalmH[] = {1, 0

Originally posted 2013-11-06 03:34:05.