Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Emgu OpenCV C# ラッパーを使用しており、その関数が返す IntPtr(s) を変換して、実際の IplImage OpenCV オブジェクトにアクセスしようとしています。何か案は?私はC#が初めてなので、どんな提案も大歓迎です。
乾杯。
さて、解決策を得て、ここに投稿します-
IntPtr rgb32;
...
MIplImage rgb32Image = new MIplImage(); rgb32Image = (MIplImage)Marshal.PtrToStructure(rgb32, typeof(MIplImage));
もちろん、必要なのは rgb32Image です。