Ask Your Question

cvandert's profile - activity

2017-10-01 11:26:47 -0500 received badge  Nice Question (source)
2015-06-20 23:53:47 -0500 commented question How do i get the goodness of fit for the result of fitEllipse?

32 points is an arbitrary number, and in this case just the number of points I used in my call to fitEllipse. If each point used to otain the fit is perfectly on the ellipse then:

    1.      (px/half_ellipse_width)^2 + (py/half_ellipse_height)^2 = 1

which follows from the definition of an ellipse if it's center is at 0,0. However, since i'm using full width and height, that is (2 x half_width)^2 and (2xhalf_height)^2, the result is 0.25 instead of 1.0.

equation 1, is defined for an ellipse with vertical and horizontal axes, whearas fitEllipse returns an ellipse that is rotated, using -angle rotates the positions back on to an ellipse with orthogonal axes.

2015-06-20 23:53:47 -0500 commented question OpenCV Build process warning : field of class type without a DLL interface used in a class with a DLL interface

i'm also getting lots of these warnings: Warning 77 warning : base class dllexport/dllimport specification differs from that of the derived class D:\GitHub\opencv\modules\core\include\opencv2\core.hpp 98 1 opencv_core

using VC++2013 on windows 7 64bit, CUDA 6.5, OpenCV on Git Itseez

and compiling fails with: Error 161 error C2220: warning treated as error - no 'object' file generated d:\github\opencv\modules\cudev\include\opencv2\cudev\grid\detail\transform.hpp 299 1 opencv_core

how to solve this?

2015-06-18 03:35:09 -0500 received badge  Notable Question (source)
2014-11-17 23:58:03 -0500 received badge  Popular Question (source)
2014-03-05 03:19:30 -0500 commented question visual studio 2013 - MSVCP110D.dll is missing from your computer (Windows 7 x64)

Well it was, because it works now!!!!

2014-03-04 06:11:47 -0500 asked a question visual studio 2013 - MSVCP110D.dll is missing from your computer (Windows 7 x64)

Recently I'm getting this error when I run a program in debugging mode. This happens after compiling with VS2012 or VS2010. It seems to be the windows debug runtime. I cannot find this dll on my computer.

I've tried reinstalling the 2010 and 2012 runtimes. Actually it may have started after I installed the windows 7 SDK.

After searching the internet I have not found a solution that works. Can anyone on this forum be of help?

cvdt

Since I'm a new user I cannot add an answer for two days, but I found a solution to my problem and thought I should give some feedback as soon as possible.

This error occurs in my case when I set the Visual Studio environment values to : $(OPENCV_DIR)\x64\vc11\bin and $(OPENCV_DIR)\x64\vc11\lib. And set the v11\bin in the PATH variable.

I'm using opencv 248 with my environment values set to $(OPENCV_DIR)\x64\vc12\bin and $(OPENCV_DIR)\x64\vc12\lib, with the PATH set accordingly.

And now all works fine. Does this suggest that the v11 library files are not good?

regards,

cvdt

2013-09-11 10:11:05 -0500 received badge  Student (source)
2013-09-11 04:29:09 -0500 received badge  Editor (source)
2013-09-11 04:27:40 -0500 asked a question How do i get the goodness of fit for the result of fitEllipse?

fit an ellipse and get goodness of fit

rRect = fitEllipse( Coords);

double angle = rRect.angle/180*Pi;
Point2f Center = rRect.center;
Size2f Sz = rRect.size;

g_GOF = 0; //Goodness Of Fit, the smaller the better
double posx, posy;
for(int i = 0; i < 32; i++){
    posx = (Coords[i].x - Center.x) * cos(-angle) - (Coords[i].y- Center.y) * sin(-angle);
    posy = (Coords[i].x - Center.x) * sin(-angle) + (Coords[i].y- Center.y) * cos(-angle);
    g_GOF += abs( posx/Sz.width*posx/Sz.width + posy/Sz.height*posy/Sz.height - 0.25);
}

this works very well but comments are appreciated

2013-09-05 05:37:01 -0500 commented question 64bit Opencv windows7 error 0x000007

Thank you very much Steven, it's working now. I didn't realize that I had to change the environment path value to the OpenCV DLLs, but in retrospect it does seem logical.

2013-09-04 10:30:39 -0500 asked a question 64bit Opencv windows7 error 0x000007

I have a windows7 64bit machine. I compiled and linked a small sample program with visual studio 2010 professional in 64bit debug mode. (The program runs fine in 32bit mode). It also compiles and links fine in 64 bit mode (changed the libraries to 64bit versions of OpenCV), however when i run it, it immediately returns with the 0xc000007b message, and shuts down. I have not been able to find a solution to this on the internet. what is wrong here?

2013-09-04 10:25:45 -0500 commented question 0xc000007b error when trying the sample programs.

I also get the same error when i run a sample program. I have a windows7 64bit machine. I compiled and linked a small sample program with visual studio 2010 professional in 64bit debug mode. The program runs fine in 32bit mode. It also compiles and links fine in 64 bit mode (changed the libraries to 64bit versions of OpenCV), however when i run it, it immediately returns with the 0xc000007b message, and shuts down. I have not been able to find a solution to this on the internet. what is wrong here?