You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. //----------------------------------------------------------------------------
  2. // Copyright (C) 2004-2019 by EMGU Corporation. All rights reserved.
  3. //----------------------------------------------------------------------------
  4. #if !(__IOS__ || UNITY_IPHONE || UNITY_ANDROID || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX || UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN || NETFX_CORE)
  5. using System;
  6. using System.Drawing;
  7. using System.Runtime.InteropServices;
  8. using Emgu.CV.Cuda;
  9. using Emgu.CV.CvEnum;
  10. using Emgu.Util;
  11. namespace Emgu.CV
  12. {
  13. /// <summary>
  14. /// This is the proxy class for passing read-only input arrays into OpenCV functions.
  15. /// </summary>
  16. public partial class InputArray : UnmanagedObject
  17. {
  18. /// <summary>
  19. /// Get the GpuMat from the input array
  20. /// </summary>
  21. /// <returns>The GpuMat</returns>
  22. public Cuda.GpuMat GetGpuMat()
  23. {
  24. Cuda.GpuMat m = new Cuda.GpuMat();
  25. CvInvoke.cveInputArrayGetGpuMat(Ptr, m);
  26. return m;
  27. }
  28. }
  29. public partial class CvInvoke
  30. {
  31. [DllImport(CvInvoke.ExternLibrary, CallingConvention = CvInvoke.CvCallingConvention)]
  32. internal static extern void cveInputArrayGetGpuMat(IntPtr ia, IntPtr gpumat);
  33. }
  34. }
  35. #endif