/// <summary> /// creates alternative matrix header for the same data, with different /// number of channels and/or different number of rows. see cvReshape. /// </summary> /// <param name="cn"></param> /// <param name="rows"></param> /// <returns></returns> public GpuMat Reshape(int cn, int rows) { if (disposed) { throw new ObjectDisposedException("GpuMat"); } GpuMat outValue = new GpuMat(); GpuInvoke.GpuMat_reshape(ptr, cn, rows, outValue.CvPtr); return(outValue); }