BUG: Fill status with zeros. Squeeze dimensions of F.

This commit is contained in:
Stefan van der Walt
2010-12-02 16:49:45 +02:00
parent 95ac9e8bbc
commit 6c6658b766
+2 -1
View File
@@ -2560,6 +2560,7 @@ def cvFindFundamentalMat(points1, points2, int method=CV_FM_RANSAC,
status_shape[0] = <np.npy_intp> points1.shape[0]
status_shape[1] = <np.npy_intp> 1
cdef np.ndarray status = new_array(2, status_shape, UINT8)
status.fill(0)
## cdef IplImage status_img
## populate_iplimage(status, &status_img)
@@ -2590,7 +2591,7 @@ def cvFindFundamentalMat(points1, points2, int method=CV_FM_RANSAC,
if m == 0:
return (None, status)
else:
return (F.reshape((m, 3, 3)), status)
return (F.reshape((m, 3, 3)).squeeze(), status)
#------------------------