【发布时间】:2011-05-09 19:34:00
【问题描述】:
我正在使用 EmguCV,我有一个大小为 640x480 的字节类型灰度矩阵,矩阵的每个元素都是 255 或 0。现在我需要从中制作一个图像。我找到的最好的构造函数是这样的:
Image<Gray,byte>(int width, int height, int stride, IntPtr scan0)
我从矩阵中得到了第一个、第二个和第四个参数,并为步幅发送了 640。但它给了我一个
Access violation exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
我将不胜感激。
【问题讨论】:
标签: c# image access-violation emgucv