Calling an OpenCV function
-
Dear ALL, I want to call an opencv function from C#...(a function from the OpenCV library provided by Intel) I was wondering if I just call the .dll or is there some sort of installation that has to be done to the library? Best Regards, E.A.
i don't know OpenCV but if its unmanaged dll You can use P/Invoke to call function from dll Look at Calling Win32 DLLs in C# with P/Invoke[^] MCAD
-
i don't know OpenCV but if its unmanaged dll You can use P/Invoke to call function from dll Look at Calling Win32 DLLs in C# with P/Invoke[^] MCAD
Thanks Muhammad, I have read about P/Invoke... My problem now is with marshalling the data between the managed and unmanaged code... The unmanaged function that I want to call has the following input parameter of type CvContourRetrievalMode that takes only 4 values ,either CV_RETR_TREE ..etc I don't know if it would be correct to use an enum in this case? Thanks again, E.A.