C# 图像<;Bgr,字节>;线程中的图像复制
我正在尝试在为一个线程调用的方法中使用image.copy(),如下面的示例所示:C# 图像<;Bgr,字节>;线程中的图像复制,c#,multithreading,visual-studio,emgucv,C#,Multithreading,Visual Studio,Emgucv,我正在尝试在为一个线程调用的方法中使用image.copy(),如下面的示例所示: public static unsafe void recognise(Image<Bgr, byte> imgOriginal) { (...) Rectangle piece_square = new Rectangle(...); Image<Bgr, byte> square_image = im
public static unsafe void recognise(Image<Bgr, byte> imgOriginal)
{ (...)
Rectangle piece_square = new Rectangle(...);
Image<Bgr, byte> square_image = imgOriginal.Copy(piece_square);
}
}
它抛出这些异常“Emgu.CV.Util.CvException”
是什么原因造成的?您是否有可能提供?这肯定会提高你得到好答案的机会。
Thread aux = new Thread(() => recognise(imgOriginal))
aux.Start();