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

Added by Arrigo Benedetti over 4 years ago. Updated almost 4 years ago.

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


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


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((, 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 almost 4 years ago

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

Revision 82b6419d
Added by Vadim Pisarevsky almost 4 years ago

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


Updated by Vadim Pisarevsky over 4 years ago

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

Updated by Kirill Kornyakov over 4 years ago

  • Target version set to Next Hackathon

Updated by Vadim Pisarevsky about 4 years ago

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

Updated by Vadim Pisarevsky almost 4 years ago

  • Assignee set to Vadim Pisarevsky

Updated by Andrey Kamaev almost 4 years ago

Fix is pushed to 2.4

  • Status changed from Open to Done

Updated by Kirill Kornyakov almost 4 years ago

  • Target version set to 2.4.4

Also available in: Atom PDF