public void TestCountNonZero() { if (!CudaInvoke.HasCuda) { return; } //Mat m = new Mat(100, 200, Mat.Depth.Cv8U, 1); CudaImage <Gray, Byte> m = new CudaImage <Gray, Byte>(100, 200); m.SetTo(new MCvScalar(), null, null); EmguAssert.IsTrue(0 == CudaInvoke.CountNonZero(m)); //Trace.WriteLine(String.Format("non zero count: {0}", )); }
public void TestCountNonZero() { if (!CudaInvoke.HasCuda) return; //Mat m = new Mat(100, 200, Mat.Depth.Cv8U, 1); CudaImage<Gray, Byte> m = new CudaImage<Gray, Byte>(100, 200); m.SetTo(new MCvScalar(), null, null); EmguAssert.IsTrue(0 == CudaInvoke.CountNonZero(m)); //Trace.WriteLine(String.Format("non zero count: {0}", )); }