Ejemplo n.º 1
0
    /**
     *  @brief	Read the image samples for a specified module.
     *  @param[in]	mid					The module identifier.
     *  @param[out]	sample				The captured sample, to be returned.
     *  @param[out] sp					The SP, to be returned.
     *  @return PXCM_STATUS_NO_ERROR	Successful execution.
     */
    public pxcmStatus ReadModuleStreamsAsync(Int32 mid, PXCMCapture.Sample sample, out PXCMSyncPoint sp)
    {
        IntPtr     sp2;
        pxcmStatus sts = PXCMCaptureManager_ReadModuleStreamsAsync(instance, mid, sample.images, out sp2);

        sp = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? new PXCMSyncPoint(sp2, true) : null;
        return(sts);
    }
Ejemplo n.º 2
0
    /**
     *  @brief Feed captured samples to module for processing. If the samples are not available
     *  immediately, the function will register to run the module processing when the samples
     *  are ready. This is an asynchronous function. The application must synchronize the
     *  returned SP before retrieving any module data, which is not available during processing.
     *  @param[in]  images	The samples from the capture device.
     *  @param[out] sp		The SP, to be returned.
     *  @return PXCM_STATUS_NO_ERROR	Successful execution.
     */
    public pxcmStatus ProcessImageAsync(PXCMCapture.Sample sample, out PXCMSyncPoint sp)
    {
        IntPtr     sp2;
        pxcmStatus sts = PXCMVideoModule_ProcessImageAsync(instance, sample, out sp2);

        sp = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? new PXCMSyncPoint(sp2, true) : null;
        return(sts);
    }
Ejemplo n.º 3
0
 private pxcmStatus OnModuleProcessedFrame(Int32 mid, IntPtr module, IntPtr images)
 {
     PXCMCapture.Sample sample = new PXCMCapture.Sample(images);
     if (mid == PXCMFaceModule.CUID)
         return handler.onModuleProcessedFrame(mid, new PXCMFaceModule(sm.faceEvents, module, false), sample);
     if (mid == PXCMHandModule.CUID)
         return handler.onModuleProcessedFrame(mid, new PXCMHandModule(sm.handEvents, module, false), sample);
     return handler.onModuleProcessedFrame(mid, PXCMBase.IntPtr2PXCMBase(module, mid), sample);
 }
Ejemplo n.º 4
0
 private pxcmStatus OnModuleProcessedFrame(Int32 mid, IntPtr module, IntPtr images)
 {
     PXCMCapture.Sample sample = new PXCMCapture.Sample(images);
     if (mid == PXCMFaceModule.CUID)
     {
         return(handler.onModuleProcessedFrame(mid, new PXCMFaceModule(sm.faceEvents, module, false), sample));
     }
     if (mid == PXCMHandModule.CUID)
     {
         return(handler.onModuleProcessedFrame(mid, new PXCMHandModule(sm.handEvents, module, false), sample));
     }
     return(handler.onModuleProcessedFrame(mid, PXCMBase.IntPtr2PXCMBase(module, mid), sample));
 }
Ejemplo n.º 5
0
 internal static extern pxcmStatus PXCMVideoModule_ProcessImageAsync(IntPtr module, PXCMCapture.Sample sample, out IntPtr sp);
Ejemplo n.º 6
0
 private pxcmStatus OnNewSample(Int32 mid, IntPtr images)
 {
     PXCMCapture.Sample sample = new PXCMCapture.Sample(images);
     return(handler.onNewSample(mid, sample));
 }
Ejemplo n.º 7
0
 private pxcmStatus OnNewSample(Int32 mid, IntPtr images)
 {
     PXCMCapture.Sample sample = new PXCMCapture.Sample(images);
     return handler.onNewSample(mid, sample);
 }
Ejemplo n.º 8
0
 internal static extern pxcmStatus PXCMScenePerception_DoReconstruction(IntPtr sp, PXCMCapture.Sample sample, Single[] pose);
Ejemplo n.º 9
0
 internal pxcmStatus ExtractPlanesINT(IntPtr sp, PXCMCapture.Sample sample, Single minPlaneArea, Int32 maxPlaneNumber, Single[] pPlaneEq, byte[] pPlaneIndexImg)
 {
     return(PXCMScenePerception_ExtractPlanes(sp, sample, minPlaneArea, maxPlaneNumber, pPlaneEq, pPlaneIndexImg));
 }
Ejemplo n.º 10
0
 internal static extern pxcmStatus PXCMScenePerception_ExtractPlanes(IntPtr sp, PXCMCapture.Sample sample, Single minPlaneArea, Int32 maxPlaneNumber, Single[] pEquations, byte[] pIndexImage);
Ejemplo n.º 11
0
 internal static extern Single PXCMScenePerception_CheckSceneQuality(IntPtr sp, PXCMCapture.Sample sample);
Ejemplo n.º 12
0
 /**
  *  @brief Import the preview sample content into the photo instance.
  *  @param[in]  sample				The PXCMCapture.Sample instance from the SenseManager QuerySample().
  *  @return PXC_STATUS_NO_ERROR     Successful execution.
  */
 public pxcmStatus ImportFromPreviewSample(PXCMCapture.Sample sample)
 {
     return(PXCMPhoto_ImportFromPreviewSample(instance, sample));
 }
Ejemplo n.º 13
0
 internal static extern pxcmStatus PXCMPhoto_ImportFromPreviewSample(IntPtr photo, PXCMCapture.Sample sample);