# Revision history [back]

Please refer to this documentation

Let me quote from it:

Python: cv2.correctMatches(F, points1, points2[, newPoints1[, newPoints2]]) → newPoints1, newPoints2

Parameters:
F – 3x3 fundamental matrix.
points1 – **1xN array** containing the first set of points.
points2 – **1xN array** containing the second set of points.
newPoints1 – The optimized points1.
newPoints2 – The optimized points2.


I thnk the cause of the error is pretty clear "The point-matrices must have one row, and an equal number of columns in function cvCorrectMatches"

Can you check/print the size of good_old and good_new? they both must have each one row, and equal number of cols.

Please refer to this documentation

Let me quote from it:

Python: cv2.correctMatches(F, points1, points2[, newPoints1[, newPoints2]]) → newPoints1, newPoints2

Parameters:
F – 3x3 fundamental matrix.
points1 – **1xN array** containing the first set of points.
points2 – **1xN array** containing the second set of points.
newPoints1 – The optimized points1.
newPoints2 – The optimized points2.


I thnk the cause of the error is pretty clear "The point-matrices must have one row, and an equal number of columns in function cvCorrectMatches"

Can you check/print the size of good_old and good_new? they both must have each one row, and equal number of cols.cols to be passed to correctmatches