I am trying to use the OpenCV cvFitLine() function using the Python SWIG interface to OpenCV. My problem has to do with the fact that the last argument is a pointer to an array of four floats (to return the fitted line parameters). My first mindless attempt looked like this:

Code:
line = []
cv.cvFitLine(img, cv.CV_DIST_L2, 0, 0.01, 0.01, line)
This produced the error:


After googling around bit,...