/// <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> /// <param name="usage">Allocation Usage</param> public void Create(int rows, int cols, CvEnum.DepthType type, int channels, Usage usage = Usage.Default) { UMatInvoke.cveUMatCreateData(_ptr, rows, cols, CvInvoke.MakeType(type, channels), usage); }
/// <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) { UMatInvoke.cveUMatCreateData(_ptr, rows, cols, CvInvoke.MakeType(type, channels)); }