/// <summary> /// /// </summary> /// <param name="rows"></param> /// <param name="cols"></param> /// <param name="type"></param> public GpuMat(int rows, int cols, MatrixType type) { if (rows <= 0) { throw new ArgumentOutOfRangeException("rows"); } if (cols <= 0) { throw new ArgumentOutOfRangeException("cols"); } ptr = GpuInvoke.GpuMat_new2(rows, cols, type); if (ptr == IntPtr.Zero) { throw new OpenCvSharpException(); } }