cv2.estimateAffine3D() assertion failed (Bug #2375)


Added by Arrigo Benedetti over 12 years ago. Updated about 12 years ago.


Status:Done Start date:2012-09-20
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:python bindings
Target version:2.4.4
Affected version:2.4.3 Operating System:
Difficulty: HW Platform:
Pull request:

Description

Calling estimateAffine3D() from Python code gives this error:

OpenCV Error: Assertion failed (CV_ARE_SIZES_EQ(m1, m2) && CV_ARE_SIZES_EQ(m1, mask)) in unknown function, file C:\slave\WinInstallerMegaPack\src\opencv\modules
\calib3d\src\modelest.cpp, line 122

Sample code to reproduce the problem:

pattern_size = (11, 8)
pattern_points = np.zeros((np.prod(pattern_size), 3), np.float32)
pattern_points[:,:2] = np.indices(pattern_size).T.reshape(-1, 2)
pattern_points *= 10

(retval, out, inliers) = cv2.estimateAffine3D(pattern_points,pattern_points)


Associated revisions

Revision abd9675a
Added by Vadim Pisarevsky about 12 years ago

fixed bugs #1718, #2375; attached the new tests to test.py.

Revision 82b6419d
Added by Vadim Pisarevsky about 12 years ago

added tests for fast (ticket #2613) and estimateAffine3D (#2375)

Revision 9c5bd852
Added by Andrey Pavlenko about 11 years ago

Merge pull request #2375 from akarsakov:fix_getGradient

History

Updated by Vadim Pisarevsky over 12 years ago

  • Target version deleted (2.4.3)
  • Assignee deleted (Vadim Pisarevsky)

Updated by Kirill Kornyakov over 12 years ago

  • Target version set to Next Hackathon

Updated by Vadim Pisarevsky about 12 years ago

  • Affected version set to 2.4.3
  • Target version deleted (Next Hackathon)

Updated by Vadim Pisarevsky about 12 years ago

  • Assignee set to Vadim Pisarevsky

Updated by Andrey Kamaev about 12 years ago

Fix is pushed to 2.4

  • Status changed from Open to Done

Updated by Kirill Kornyakov about 12 years ago

  • Target version set to 2.4.4

Also available in: Atom PDF