/// <summary> /// Ensures that size of the given matrix is not less than (rows, cols) size /// and matrix type is match specified one too /// </summary> /// <param name="size">Number of rows and columns in a 2D array.</param> /// <param name="type">Array type.</param> /// <param name="m"></param> public static void EnsureSizeIsEnough(Size size, MatType type, GpuMat m) { ThrowIfGpuNotAvailable(); EnsureSizeIsEnough(size.Height, size.Width, type, m); }
/// <summary> /// Creates continuous GPU matrix /// </summary> /// <param name="size">Number of rows and columns in a 2D array.</param> /// <param name="type">Array type.</param> /// <param name="m"></param> public static void CreateContinuous(Size size, MatType type, GpuMat m) { ThrowIfGpuNotAvailable(); CreateContinuous(size.Height, size.Width, type, m); }
internal Indexer(GpuMat parent) : base(parent) { ptrVal = parent.Data.ToInt64(); }
/// <summary> /// /// </summary> /// <param name="parent"></param> protected internal RowIndexer(GpuMat parent) : base(parent) { }
/// <summary> /// /// </summary> /// <param name="m"></param> public void AssignTo(GpuMat m) { ThrowIfDisposed(); NativeMethods.cuda_GpuMat_assignTo(ptr, m.CvPtr, -1); }