3
我正在使用Emgu OpenCV C#包裝,我試圖轉換它的函數返回並訪問實際的IplImage OpenCV對象的IntPtr。有任何想法嗎?我是C#的新手,所以任何建議都是值得歡迎的。Emgu OpenCV Intptr到IplImage?
乾杯。
我正在使用Emgu OpenCV C#包裝,我試圖轉換它的函數返回並訪問實際的IplImage OpenCV對象的IntPtr。有任何想法嗎?我是C#的新手,所以任何建議都是值得歡迎的。Emgu OpenCV Intptr到IplImage?
乾杯。
好,得到了解決,並且在這裏張貼 -
IntPtr rgb32;
...
MIplImage rgb32Image = new MIplImage();
rgb32Image = (MIplImage)Marshal.PtrToStructure(rgb32, typeof(MIplImage));
其中,當然,rgb32Image是什麼需要。