Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@berak,

  • List item

The CvMat* Y is actually a 2x1 measurement matrix used for Kalman correction cv::KalmanFilter::correct(Y) and I need to set the two values of the Y matrix with a and b (which I know realize can be set simply by Y(0) = (float)a and Y(1) = float(b) ).

  • List item

Thanks for the suggestion. Removed the pointers.

  • List item

I am now using Mat::at<float>(r) notation to access the values of Mat correction returned by cv::KalmanFilter::correct(Y).

@berak,

  • List item

The CvMat* Y is actually a 2x1 measurement matrix used for Kalman correction cv::KalmanFilter::correct(Y) and I need to set the two values of the Y matrix with a and b (which I know realize can be set simply by Y(0) = (float)a and Y(1) = float(b) ).

  • List item

Thanks for the suggestion. Removed the pointers.

  • List item

I am now using Mat::at<float>(r) notation to access the values of Mat correction returned by cv::KalmanFilter::correct(Y).

@berak,

  • The CvMat* Y is actually a 2x1 measurement matrix used for Kalman correction cv::KalmanFilter::correct(Y) and I need to set the two values of the Y matrix with a and b (which I know realize can be set simply by Y(0) = (float)a and Y(1) = float(b) ).

  • Thanks for the suggestion. Removed the pointers.

  • I am now using Mat::at<float>(r) notation to access the values of Mat correction returned by cv::KalmanFilter::correct(Y).

  • Solved my problem. Thanks!