public void TestInplaceNot() { if (CudaInvoke.HasCuda) { Image <Bgr, Byte> img = new Image <Bgr, byte>(300, 400); CudaImage <Bgr, Byte> gpuMat = new CudaImage <Bgr, byte>(img); CudaInvoke.BitwiseNot(gpuMat, gpuMat, null, null); Assert.IsTrue(gpuMat.Equals(new CudaImage <Bgr, Byte>(img.Not()))); } }