Ask Your Question

HIy's profile - activity

2018-12-15 11:05:19 -0600 received badge  Notable Question (source)
2018-06-29 03:12:18 -0600 received badge  Popular Question (source)
2016-02-04 18:06:57 -0600 received badge  Notable Question (source)
2015-04-01 10:28:34 -0600 received badge  Popular Question (source)
2013-08-14 08:24:47 -0600 received badge  Student (source)
2013-04-09 18:19:25 -0600 answered a question estimateRigidTransform returns non sensical values

Please help! I am stuck on this one!!

2013-04-08 17:37:40 -0600 asked a question Building OpenCV problem : 'ptrdiff_t' : is not a member of 'std'

Hi all,

I am trying to build an openCV application in Visual Studio 2010. Have OpenCV 2.4.4. I get the following error during compilation:

\\OpenCV\2.4\include\opencv2/core/core.hpp(81): error C2039: 'ptrdiff_t' : is not a member of 'std'
\\OpenCV\2.4\include\opencv2/core/core.hpp(81): error C2868: 'ptrdiff_t' : illegal syntax for using-declaration; expected qualified-name;

Based on a google search, I tried adding to the core.hpp file.

\#include "cstddef.h"

and separately

\#include "stddef.h"

Both approaches did not work. Has any one run into similar issues? What is the fix?

Thanks.

2013-04-03 16:23:59 -0600 asked a question estimateRigidTransform returns non sensical values

Hi all,

I am trying to estimate an affine transform from two point sets. Here is the sample code that I am running to verify estimateRigidTransform.

std::vector< Point2f > obj1;
std::vector< Point2f > scene1;
for (int i=0;i<10;i++)
{
    obj1.push_back(Point2f(i,i+10));
    scene1.push_back(Point2f(i+10,i+20));
}
Mat H1 = estimateRigidTransform(obj1,scene1,false);
cout << H1 << endl;

The output I get is:

[-4.836697827223e-026, -4.836697827223e-026, -4.836697827223e-026;
  -4.836697827223e-026, -4.836697827223e-026, -4.836697827223e-026]

What am I doing wrong?

Also, I would like to estimate the transformation robustly. Is there any sample code there for using RANSAC/or other robust methods on top of estimateRigidTransform?

Thanks HIy