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


Added by Arrigo Benedetti almost 2 years ago. Updated over 1 year 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)


Related issues (Add)


Associated revisions

Revision abd9675a
Added by Vadim Pisarevsky over 1 year ago

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

Revision 82b6419d
Added by Vadim Pisarevsky over 1 year ago

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

History

Updated by Vadim Pisarevsky almost 2 years ago

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

Updated by Kirill Kornyakov almost 2 years ago

  • Target version set to Next Hackathon

Updated by Vadim Pisarevsky over 1 year ago

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

Updated by Vadim Pisarevsky over 1 year ago

  • Assignee set to Vadim Pisarevsky

Updated by Andrey Kamaev over 1 year ago

Fix is pushed to 2.4

  • Status changed from Open to Done

Updated by Kirill Kornyakov over 1 year ago

  • Target version set to 2.4.4

Also available in: Atom PDF