Ask Your Question

fred's profile - activity

2017-07-06 23:31:16 -0600 received badge  Notable Question (source)
2016-04-08 04:30:53 -0600 received badge  Popular Question (source)
2014-01-14 00:20:10 -0600 received badge  Student (source)
2013-11-13 18:31:19 -0600 asked a question Delaunay triangulation, http://www.emgu.com/wiki/index.php/Planar_Subdivision_in_CSharp

I get a compile error on c# running the Delaunay triangulation sample program...(I tried posting this issue on Emgu but am unable to create an a/c).

http://www.emgu.com/wiki/index.php/Planar_Subdivision_in_CSharp

C:\fakepath\bug_pic.jpg An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) The above bug is related to 32/64 bit, but am unable to resolve it.

Fred.

2013-10-24 20:26:36 -0600 asked a question CvInvoke.cvContourArea in c#, Emgu

Hi, I am using C# to find the area within a contour and need help translating c/c++ code as found in the following example: Unfortunately, C#, Emgu does not support vectors.

vector<Point> contour;
contour.push_back(Point2f(0, 0));
contour.push_back(Point2f(10, 0));
contour.push_back(Point2f(10, 10));
contour.push_back(Point2f(5, 4));

double area0 = contourArea(contour);
vector<Point> approx;
approxPolyDP(contour, approx, 5, true);
double area1 = contourArea(approx);

cout << "area0 =" << area0 << endl <<
        "area1 =" << area1 << endl <<
        "approx poly vertices" << approx.size() << endl;

Thx, Fred.

2013-07-31 22:07:24 -0600 commented question mingw and c# dll

Please show me the way...thanks in advance.

2013-07-31 11:01:04 -0600 asked a question mingw and c# dll

Hi, I would like to know if a dll can be created using mingw/opencv and accessed from c#? A nice example would be much appreciated. If possible to do so, will there be compatibility issues due to different compilers used. If not possible to do so, what would be the best way to go about communicating between mingw/opencv and c#?

I am thinking of communicating between c# and mingw/opencv by using the file system. But going this route seems rather clunky, inefficient, slow and prone to race condition if not protected by semaphores or by other means. Here's the process: Basically, the c# application will save too images to hard drive. Once the two image files are created, mingw/opencv will take over and process the images and spit out the answer to another harddrive file with the c# app taking over once again and displaying the answer on a gui screen. Using a ramdisk will make the process more efficient.

The above method is convoluted but I cannot think of any other way given the circumstances of unable to create a dll to communicate between c# and mingw/opencv.

2012-12-04 14:55:06 -0600 asked a question c++ support for logpolar transform

Currently opencv supports the logpolar transform for only c. How would the logpolar function be used with c++ Mat rather than the older format of cvMat.

Thanks. fred.