View Single Post
  #16  
Old 03-09-2010, 10:29 AM
JimC JimC is offline
Member
 
Join Date: Jun 2009
Posts: 42
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]
Reply With Quote