Esempio n. 1
0
 /*
  * /// <summary>
  * /// decreases reference counter;
  * /// deallocate the data when reference counter reaches 0.
  * /// </summary>
  * public void Release()
  * {
  *  if (disposed)
  *      throw new ObjectDisposedException("GpuMat");
  *  CppInvoke.gpu_GpuMat_release(ptr);
  * }
  * //*/
 /// <summary>
 /// swaps with other smart pointer
 /// </summary>
 /// <param name="mat"></param>
 public void Swap(GpuMat mat)
 {
     if (disposed)
     {
         throw new ObjectDisposedException("GpuMat");
     }
     if (mat == null)
     {
         throw new ArgumentNullException("mat");
     }
     GpuInvoke.GpuMat_swap(ptr, mat.CvPtr);
 }