/// <summary> /// Allocates new array data if needed. /// </summary> /// <param name="rows">New number of rows.</param> /// <param name="cols">New number of columns.</param> /// <param name="type">New matrix element depth type.</param> /// <param name="channels">New matrix number of channels</param> public void Create(int rows, int cols, CvEnum.DepthType type, int channels) { MatInvoke.cvMatCreateData(_ptr, rows, cols, CvInvoke.MakeType(type, channels)); }