1 | initial version |
when you initialize your KF, CP is 0, so the internal controlMatrix is emtpy (type==0)
if you now supply a control Mat in predict() , the matrix product here will throw a type exception
solution: either give it a valid CP value in init() (should be probably 3 in your case) or do not supply a control Mat in predict()
2 | No.2 Revision |
when you initialize your KF, CP is 0, KF with CP=0, so the internal controlMatrix is emtpy (type==0)
if you now supply a control Mat in predict() , the matrix product here will throw a type exception
solution: either give it a valid CP value in init() (should be probably 3 in your case) or do not supply a control Mat in predict()