From 3219025f7e0071fa70e3a7512a2dd3f3bf56e594 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 1 Dec 2010 17:23:00 +0200 Subject: [PATCH] BUG: Status should be 2-dimensional. --- scikits/image/opencv/opencv_cv.pyx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scikits/image/opencv/opencv_cv.pyx b/scikits/image/opencv/opencv_cv.pyx index 1fbb3279..80015ff2 100644 --- a/scikits/image/opencv/opencv_cv.pyx +++ b/scikits/image/opencv/opencv_cv.pyx @@ -2541,7 +2541,7 @@ def cvFindFundamentalMat(points1, points2, int method=CV_FM_RANSAC, # allocate the numpy return arrays cdef np.npy_intp fundamental_shape[2] - cdef np.npy_intp status_shape[1] + cdef np.npy_intp status_shape[2] if (method == CV_FM_7POINT): fundamental_shape[0] = 9 @@ -2549,9 +2549,10 @@ def cvFindFundamentalMat(points1, points2, int method=CV_FM_RANSAC, fundamental_shape[0] = 3 fundamental_shape[1] = 3 status_shape[0] = points1.shape[0] + status_shape[1] = 1 cdef np.ndarray F = new_array(2, fundamental_shape, FLOAT64) - cdef np.ndarray status = new_array(1, status_shape, FLOAT64) + cdef np.ndarray status = new_array(2, status_shape, FLOAT64) # Allocate cv images cdef IplImage points1_img