Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 internal Indexer(GpuMat parent)
     : base(parent)
 {
     ptrVal = parent.Data.ToInt64();
 }
Esempio n. 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 protected internal RowIndexer(GpuMat parent)
     : base(parent)
 {
 }
Esempio n. 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="m"></param>
 public void AssignTo(GpuMat m)
 {
     ThrowIfDisposed();
     NativeMethods.cuda_GpuMat_assignTo(ptr, m.CvPtr, -1);
 }