Ask Your Question

Bazze's profile - activity

2013-04-22 03:07:13 -0600 received badge  Scholar (source)
2013-04-22 03:06:16 -0600 commented answer Error-: The procedure entry point getTIckCount64 could not located in Dynamic Library KERNEL32.dll?

Hmm okey. I'm not sure if OpenCV even supports windows XP, but make sure you meet these prerequisites: http://en.wikipedia.org/wiki/OpenCV#Windows_prerequisites

2013-04-18 10:54:46 -0600 answered a question Error-: The procedure entry point getTIckCount64 could not located in Dynamic Library KERNEL32.dll?

You need to upgrade to Windows Vista or higher. See this thread: http://www.dayzcc.tk/index.php?page=Thread&threadID=3322

It should do it.

2013-04-18 10:04:18 -0600 commented question Error-: The procedure entry point getTIckCount64 could not located in Dynamic Library KERNEL32.dll?

After a google search I found suggestions on that you might be running an old Windows version? XP maybe? Or an old version of the .NET framework? (Source: http://www.dayzcc.tk/index.php?page=Thread&threadID=3322) EDIT: Ah you wrote you were running XP, so you should probably upgrade to XP. I'll add it as an answer.

2013-04-18 09:44:32 -0600 asked a question Convert two points to rho and theta

Hello!

I need to convert two points, (x1,y1) and (x2,y2), to rho and theta. What is the simplest way to do that?

This is my try so far and I'm not sure if it's correct:

cv::Vec2f LineProcessor::pointsToRhoTheta(double x1,double x2,double y1,double y2){

   double cvTheta=0;
   double cvRho=0;
   double k=0;
   if (x2-x1!=0) {
      k=(y2-y1)/(x2-x1);
   } else {
      k=99999;
   }

   double xSlope,ySlope,m;
   m=y1-k*x1;

   xSlope=-m/(k+(1/k));
   ySlope=m/(pow(k,2)+1);

   if (std::atan2((ySlope),(xSlope))<0) {
      cvTheta=std::atan2((ySlope),(xSlope))+CV_PI;
      cvRho=-std::sqrt(pow(xSlope,2)+pow(ySlope,2));
   } else {
      cvTheta=std::atan2((ySlope),(xSlope));
      cvRho=std::sqrt(pow(xSlope,2)+pow(ySlope,2));
   }

   cv::Vec2f lineRhoTheta;

   lineRhoTheta[0]=cvRho;
   lineRhoTheta[1]=cvTheta;

   return lineRhoTheta;
}

Has anyone done this before?