Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using opencv to C#

Hi everybody

I'm programming an app detect object using C++ and use C# for UI because design so easy. I can not use emguCV because size of program too big. My solution is writting code by C++, using wrapper C++/CLI to C#. But I have problem: I can not convert cvMat to Drawing.Image.

I searched Google and this is some way I fail:

  1. Convert cvMat to Hbitmap, but in C# I can not convert to bitmap or image
  2. Send cvMat data as byte[] to C#, but I can't do it because pointer C++ different C#

Could anyone help me? Thank so much