Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. findHomography expects srcPoints/dstPoints (points_A/points_B) to be new cv.Mat(3,3,cv.CV_32F)

    The input arrays should be 2D or 3D point sets in function 'findHomography'.

  2. warpPerspective(image_B_gray, dst, h, new cv.Size(rows,cols)) expects M (or h) to be a 3x3 transform matrix

    (M0.type() == CV_32F || M0.type() == CV_64F) && M0.rows == 3 && M0.cols == 3 in function 'warpPerspective'*