Passing C++ cv::Mat to Image in C# [closed]
Hello
I need to pass an cv::Mat (RGB Image without alpha) to a Image Class in C#. For this, I have created a DLL where I can call the C++ code from C#. Using emguCv is no option.
One option would be to save the image in C++ and to reopen the image in C#. But I would like to pass the image by reference (Pointer). For C++ datatype would be char* and in C# IntPtr right?
There are similiar questions but all of these cann't help me.
https://social.msdn.microsoft.com/For...
Thanks a lot and regards Roberto
thanks....
Last time I wanted to do some image processing stuff in C#, I realized that it was a very bad idea. With all the
unsafe
code, the memory access became a real nightmare. TheImage
class is good for displaying some JPGs, but that's all.