Closed GoogleCodeExporter closed 9 years ago
Hi,
Class Point2f is different from class Point. Can you replace cv.Point with
cv.Point2f
and see if it works?
Cheers,
Minh-Tri
Original comment by pmtri80@gmail.com
on 28 May 2010 at 4:00
I changed to following code, but the same error:
import pyopencv as cv
a = [cv.Point2f(0,0),cv.Point2f(1,0),cv.Point2f(0,1)]
b = [cv.Point2f(0,0),cv.Point2f(1,0),cv.Point2f(0,1)]
m = cv.getAffineTransform(a,b)
print m
Original comment by ruoyu0...@gmail.com
on 28 May 2010 at 10:39
Thanks. I'll take a look. I'm a bit too busy now and have made some changes to
the
getAffineTransform() function recently.
Cheers,
Minh-Tri
Original comment by pmtri80@gmail.com
on 28 May 2010 at 10:52
Original comment by pmtri80@gmail.com
on 28 May 2010 at 10:52
Hi,
I just tested and would like to confirm the bug. I will fix it in the next
release.
Thanks for filing the issue.
Cheers,
Minh-Tri
Original comment by pmtri80@gmail.com
on 28 May 2010 at 11:14
I have fixed the bug in the main trunk. However, in the current version, a
number of function calling sequences have been modified. These changes are
necessary for the future. For example, your code is now runnable if you use a
cv.vector_Point2f instead of a Python list:
import pyopencv as cv
a = cv.vector_Point2f([cv.Point2f(0,0),cv.Point2f(1,0),cv.Point2f(0,1)])
b = cv.vector_Point2f([cv.Point2f(0,0),cv.Point2f(1,0),cv.Point2f(0,1)])
m = cv.getAffineTransform(a,b)
print m
Minh-Tri
Original comment by pmtri80@gmail.com
on 16 Jul 2010 at 2:40
Original issue reported on code.google.com by
ruoyu0...@gmail.com
on 28 May 2010 at 2:28