1 | initial version |
Hi,
I use OpenCV (2.4.x and 3.0.x) with windows forms (visual studio 2008, 2013, /clr compiler flag) routinely - I use OpenCV commands in form callbacks without any particular problem, probably because I cheat and declare all cv::Mats either globally in the .cpp file or locally within a function and not as part of the form so that they are technically not "managed". (in fact my form header does not even #include opencv).
It gets a bit tricky when you want opencv windows (imShow) and your form to actually interact (e.g. have setMouseCallback or createTrackBar call a form function) - the solution to that is here - but otherwise it works fine.
If you share the errors you get I may be able to help you more.
guy