Commit 8f7e5811 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed 2 failing python tests

parent ce32b479
...@@ -95,7 +95,7 @@ cvExtractSURF( const CvArr* _img, const CvArr* _mask, ...@@ -95,7 +95,7 @@ cvExtractSURF( const CvArr* _img, const CvArr* _mask,
{ {
if( _keypoints ) if( _keypoints )
{ {
CvSURFPoint pt = cvSURFPoint(kpt[i].pt, kpt[i].class_id, cvRound(kpt[i].size)); CvSURFPoint pt = cvSURFPoint(kpt[i].pt, kpt[i].class_id, cvRound(kpt[i].size), kpt[i].angle, kpt[i].response);
cvSeqPush(*_keypoints, &pt); cvSeqPush(*_keypoints, &pt);
} }
if( _descriptors ) if( _descriptors )
......
...@@ -239,7 +239,7 @@ class FunctionTests(OpenCVTests): ...@@ -239,7 +239,7 @@ class FunctionTests(OpenCVTests):
a = self.get_sample("samples/c/lena.jpg", 0) a = self.get_sample("samples/c/lena.jpg", 0)
b = self.get_sample("samples/c/lena.jpg", 0) b = self.get_sample("samples/c/lena.jpg", 0)
(w,h) = cv.GetSize(a) (w,h) = cv.GetSize(a)
vel_size = (w - 8, h - 8) vel_size = (w - 8 + 1, h - 8 + 1)
velx = cv.CreateImage(vel_size, cv.IPL_DEPTH_32F, 1) velx = cv.CreateImage(vel_size, cv.IPL_DEPTH_32F, 1)
vely = cv.CreateImage(vel_size, cv.IPL_DEPTH_32F, 1) vely = cv.CreateImage(vel_size, cv.IPL_DEPTH_32F, 1)
cv.CalcOpticalFlowBM(a, b, (8,8), (1,1), (8,8), 0, velx, vely) cv.CalcOpticalFlowBM(a, b, (8,8), (1,1), (8,8), 0, velx, vely)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment