Where is setIdentity defined? It looks like the compiler can't find it. Can you do something like this instead?
kf.measurementMatrix = Mat::eye(kf.measurementMatrix.rows, kf.measurementMatrix.cols, CV_64F);