views:

1805

answers:

3

Hello,

I am just learning about computer vision and C#. It seems like two prominent image processing libraries are OpenCV and AForge. What are some of the differences of the two?

I am making a basic image editor in C# and while researching I have come across articles on both. But I don't really know why I would choose one over the other. I would like to eventually improve the app to include more advanced functions.

Thanks.

A: 

To my understanding AForge is for use with C# while OpenCV works with C/C++. Excuse me if I'm being wrong here but I haven't meddled with C# or AForge at all. Other than that, they are two entirely different project (although providing means towards the same goal).

While reading some sample code from AForge applications in C#, I can say that both libraries have more or less similar capabilities, as in image processing functions (or filters). But as I said I'm not AForge expert.

I hope my answer helped even a little bit.

alkar
If you haven't used either of the applications and you only speculate about both how is the the answer? What about performance, contour finding, image differencing, the image formats used by both. What about the 3 C# wrappers that exist for OpenCV? You response is not an answer.
JustSmith
I have used OpenCV extensively and I have researched AForge but not used it. So it's not a speculation. And sorry, but an answer is always an answer, even if I was speculating.
alkar
+3  A: 

I am using OpenCV for a project in school right now, and I browsed the documentation for AForge and their feature seem to differ. AForge has lots of filters and is probably excellent for different transforms and image manipulation. But it seems to lack quite a bit in other areas. I could not find any matrix operations which was a disappointment as it is so useful in computer vision. Our current project (3D point cloud reconstruction from an image sequence) would, as far as I could see from the docs, be impossible to do with AForge alone.

Combine AForge with a good linear algebra library and you might have something really useful though.

As for OpenCV it has a rich feature set but is a bit tricky to program with.

kigurai
A: 

If you would like to improve your application with more and more advanced functions like you said, I'd go for OpenCV- however, a part of your success depends on the fact that the C# port is actively updated, which shouldn't be much of trouble considering the three ports. I think EmguCV seems to be one of the best right now in terms of updated, but when I looked at it, lacks documentation (but you could probably translate C++ code into C# with some C++ knowledge). AForge seems a lot easier for me and that's what I'm using right now. OpenCV also has support for haarcascade.xml files you can use that include face detection.

So for the final take: both will suit you well, OpenCV is more widely used/supported (though most user-base is C++), AForge is easier. It all comes down to what you want to do.

DMan