Ejemplo n.º 1
0
        public WGui(StdSharedPtr <Gui> gui)
        {
            if (gui == null)
            {
                throw new ArgumentNullException(nameof(gui));
            }

            gui.ThrowIfDisposed();

            this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
            this.NativePtr = NativeMethods.op_WGui_new(this._DataType, gui.NativePtr);
        }
Ejemplo n.º 2
0
        protected UserWorkerConsumer() :
            base(IntPtr.Zero)
        {
            this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
            this._Mediator = new UserWorkerConsumerDelegateMediator(this._DataType)
            {
                InitializationOnThread = this.OnInitializationOnThread,
                Work = this.OnWork
            };
            this._Mediator.Setup();

            this.NativePtr = this._Mediator.NativePtr;
        }
Ejemplo n.º 3
0
        public WDatumProducer(StdSharedPtr <DatumProducer <T> > datumProducer)
        {
            if (datumProducer == null)
            {
                throw new ArgumentNullException(nameof(datumProducer));
            }

            datumProducer.ThrowIfDisposed();

            this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
            this.NativePtr = OpenPose.Native.op_WDatumProducer_new(this._DataType,
                                                                   datumProducer.NativePtr);
        }
        protected WorkerDelegateMediator(OpenPose.DataType dataType)
        {
            this.InitializationOnThreadAction        = this.OnInitializationOnThread;
            this.InitializationOnThreadActionPointer = Marshal.GetFunctionPointerForDelegate(this.InitializationOnThreadAction);

            this.ProcessAction        = this.OnWork;
            this.ProcessActionPointer = Marshal.GetFunctionPointerForDelegate(this.ProcessAction);

            this.ProcessAction2        = this.OnWork2;
            this.ProcessAction2Pointer = Marshal.GetFunctionPointerForDelegate(this.ProcessAction2);

            this.DataType = dataType;
        }
Ejemplo n.º 5
0
        public DatumProducer(StdSharedPtr <Producer> producerSharedPtr,
                             ulong frameFirst = 0,
                             ulong frameStep  = 1,
                             ulong frameLast  = ulong.MaxValue)
        {
            if (producerSharedPtr == null)
            {
                throw new ArgumentNullException(nameof(producerSharedPtr));
            }

            producerSharedPtr.ThrowIfDisposed();

            this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
            this.NativePtr = NativeMethods.op_DatumProducer_new(this._DataType,
                                                                producerSharedPtr.NativePtr,
                                                                frameFirst,
                                                                frameStep,
                                                                frameLast,
                                                                IntPtr.Zero);
        }
Ejemplo n.º 6
0
 public static extern bool op_wrapper_waitAndEmplace_cvMat(OpenPose.DataType dataType, IntPtr wrapper, IntPtr tDatums);
Ejemplo n.º 7
0
 internal WDatumProducer(IntPtr ptr, bool isEnabledDispose = true) :
     base(ptr, isEnabledDispose)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
     this.NativePtr = ptr;
 }
Ejemplo n.º 8
0
 public static extern IntPtr op_WDatumProducer_new(OpenPose.DataType dataType,
                                                   IntPtr datumProducer);
Ejemplo n.º 9
0
 public static extern IntPtr op_wrapper_emplaceAndPop_rawImage(OpenPose.DataType dataType,
                                                               IntPtr wrapper,
                                                               byte[] data,
                                                               int width,
                                                               int height,
                                                               int type);
Ejemplo n.º 10
0
 public static extern bool op_UserWorkerProducer_checkAndWork(OpenPose.DataType dataType, IntPtr worker, IntPtr datums);
Ejemplo n.º 11
0
 public static extern void op_UserWorkerProducer_stop(OpenPose.DataType dataType, IntPtr worker);
Ejemplo n.º 12
0
 public static extern IntPtr op_ThreadManager_getIsRunningSharedPtr(OpenPose.DataType dataType, IntPtr threadManager);
Ejemplo n.º 13
0
 public static extern void op_UserWorkerConsumer_delete(OpenPose.DataType dataType, IntPtr worker);
Ejemplo n.º 14
0
 public static extern void op_ThreadManager_add(OpenPose.DataType dataType,
                                                IntPtr threadManager,
                                                ulong threadId,
                                                IntPtr tWorker,
                                                ulong queueInId,
                                                ulong queueOutId);
Ejemplo n.º 15
0
 public static extern void op_ThreadManager_stop(OpenPose.DataType dataType, IntPtr threadManager);
Ejemplo n.º 16
0
 public static extern bool op_wrapper_emplaceAndPop(OpenPose.DataType dataType, IntPtr wrapper, IntPtr tDatums);
Ejemplo n.º 17
0
 public static extern IntPtr std_shared_ptr_TDatum_get(OpenPose.DataType dataType, IntPtr p);
Ejemplo n.º 18
0
 public static extern void op_wrapper_setDefaultMaxSizeQueues(OpenPose.DataType dataType,
                                                              IntPtr wrapper,
                                                              long defaultMaxSizeQueues);
Ejemplo n.º 19
0
 public static extern IntPtr op_WGui_new(OpenPose.DataType dataType, IntPtr gui);
Ejemplo n.º 20
0
 public static extern IntPtr op_ThreadManager_new(OpenPose.DataType dataType, ThreadManagerMode threadManagerMode);
Ejemplo n.º 21
0
 public static extern void op_WGui_delete(OpenPose.DataType dataType, IntPtr wgui);
Ejemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wrapper{T}"/> class with the specified ThreadManager synchronization mode.
 /// </summary>
 /// <param name="threadManagerMode"></param>
 public Wrapper(ThreadManagerMode threadManagerMode = ThreadManagerMode.Synchronous)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
     this.NativePtr = NativeMethods.op_wrapper_new(this._DataType, threadManagerMode);
 }
Ejemplo n.º 23
0
 public static extern IntPtr op_UserWorkerProducer_new(OpenPose.DataType dataType, IntPtr initializationOnThread_function, IntPtr process_function);
Ejemplo n.º 24
0
 public static extern void op_wrapper_configure_gui(OpenPose.DataType dataType, IntPtr wrapper, IntPtr wrapperStructOutput);
Ejemplo n.º 25
0
 public static extern bool op_UserWorkerProducer_isRunning(OpenPose.DataType dataType, IntPtr worker);
Ejemplo n.º 26
0
 public static extern bool op_wrapper_waitAndPop(OpenPose.DataType dataType, IntPtr wrapper, out IntPtr tDatums);
Ejemplo n.º 27
0
 public static extern IntPtr op_DatumProducer_new(OpenPose.DataType dataType,
                                                  IntPtr producerSharedPtr,
                                                  ulong frameFirst,
                                                  ulong frameStep,
                                                  ulong frameLast,
                                                  IntPtr videoSeekSharedPtr);
Ejemplo n.º 28
0
 public ThreadManager(ThreadManagerMode threadManagerMode = ThreadManagerMode.Synchronous)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
     this.NativePtr = OpenPose.Native.op_ThreadManager_new(this._DataType, threadManagerMode);
 }
Ejemplo n.º 29
0
 public static extern void op_WDatumProducer_delete(OpenPose.DataType dataType, IntPtr producer);
Ejemplo n.º 30
0
 public static extern IntPtr op_wrapper_emplaceAndPop_cvMat(OpenPose.DataType dataType, IntPtr wrapper, IntPtr mat);