Code:
return _cv.CvMat__setitem__(*args)
RuntimeError: openCV Error:
Status=Sizes of input arguments do not match
My guess would be to try looping through the two arrays and setting corresponding elements one at a time rather than trying to set the whole thing at once, e.g.:
Code:
for i in range(2):
for j in range(2):
transition_matrix[i][j] = A[i][j]