Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 图像<;Bgr,字节>;线程中的图像复制_C#_Multithreading_Visual Studio_Emgucv - Fatal编程技术网

C# 图像<;Bgr,字节>;线程中的图像复制

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

我正在尝试在为一个线程调用的方法中使用image.copy(),如下面的示例所示:

 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();