Ask Your Question

Neptilo's profile - activity

2013-08-15 03:22:06 -0600 commented question problem with reading image to Mat

The "&lt;" are HTML entities for left angle brackets "<".

2013-08-14 08:24:47 -0600 received badge  Supporter (source)
2013-08-14 08:19:44 -0600 commented answer estimateRigidTransform returns non sensical values

I just downloaded the source code lkpyramid.cpp and set RANSAC's local parameters as arguments so I can modify whatever I want, haha!

2013-08-14 06:12:02 -0600 received badge  Teacher (source)
2013-08-14 05:16:51 -0600 received badge  Necromancer (source)
2013-08-14 04:25:07 -0600 answered a question estimateRigidTransform returns non sensical values

Your code looks right. However, to estimate an affine transformation you need at least 3 points, but if these points are all aligned, there is an infinity of solutions, which seems to lead the estimation to result in a degenerate solution.

Although that might no longer be true as you set fullAffine to false, perhaps the function is implemented in such a way that it still needs points that are not aligned. But that is a supposition.

What is the result if you add another point? For example:

obj1.push_back(Point2f(0, 0));
scene1.push_back(Point2f(10, 10));
2013-08-14 03:25:34 -0600 commented answer estimateRigidTransform returns non sensical values

What if we really want to use estimateRigidTransform? What is the right way to use it?