Пример #1
0
 public void TestUMatCreate()
 {
     if (CvInvoke.HaveOpenCL)
     {
         CvInvoke.UseOpenCL = true;
         using (UMat m1 = new UMat())
         {
             m1.Create(10, 12, CvEnum.DepthType.Cv8U, 1);
             EmguAssert.IsTrue(m1.GetData() != null);
         }
         CvInvoke.UseOpenCL = false;
         using (UMat m2 = new UMat())
             m2.Create(10, 12, CvEnum.DepthType.Cv8U, 1);
         //EmguAssert.IsTrue(m2.Data != null);
     }
     else
     {
         UMat m2 = new UMat();
         m2.Create(10, 12, CvEnum.DepthType.Cv8U, 1);
         //EmguAssert.IsTrue(m2.Data != null);
     }
 }