Ask Your Question

Revision history [back]

click to hide/show revision 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()

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