/// <summary> /// allocates new matrix data unless the matrix already has specified size and type. /// previous data is unreferenced if needed. /// </summary> /// <param name="rows"></param> /// <param name="cols"></param> /// <param name="type"></param> public void Create(int rows, int cols, MatrixType type) { if (disposed) { throw new ObjectDisposedException("GpuMat"); } GpuInvoke.GpuMat_create1(ptr, rows, cols, type); }