Example #1
0
    /**
     *  @brief Retrieve the hand object data using a specific AccessOrder and related index.
     *
     *  @param[in] accessOrder - the order in which the hands are enumerated (accessed).
     *  @param[in] index - the index of the hand to be retrieved, based on the given AccessOrder.
     *  @param[out] handData - the information for the hand.
     *
     *  @return PXCM_STATUS_NO_ERROR - operation succeeded.
     *  @return PXCM_STATUS_PARAM_UNSUPPORTED - index >= MAX_NUM_HANDS.
     *  @return PXCM_STATUS_DATA_UNAVAILABLE  - index >= number of detected hands.
     *
     *  @see AccessOrder
     *  @see IHand
     */
    public pxcmStatus QueryHandData(AccessOrderType accessOrder, Int32 index, out IHand handData)
    {
        IntPtr     hd2;
        pxcmStatus sts = PXCMHandData_QueryHandData(instance, accessOrder, index, out hd2);

        handData = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? new IHand(hd2) : null;
        return(sts);
    }
Example #2
0
    /**
     *   @brief Retrieve an IBlob object using a specific AccessOrder and index (that relates to the given order).
     *   @param[in] index - the zero-based index of the requested blob (between 0 and QueryNumberOfBlobs()-1 ).
     *   @param[in] accessOrder - the order in which the blobs are enumerated.
     *   @param[out] blobData - contains the extracted blob and contour line data.
     *
     *   @return PXCM_STATUS_NO_ERROR - successful operation.
     *   @return PXCM_STATUS_PARAM_UNSUPPORTED - index >= configured maxBlobs.
     *   @return PXCM_STATUS_DATA_UNAVAILABLE  - index >= number of detected blobs.
     *
     *   @see AccessOrderType
     */
    public pxcmStatus QueryBlobByAccessOrder(Int32 index, AccessOrderType accessOrderType, out IBlob blobData)
    {
        IntPtr     bd2;
        pxcmStatus sts = PXCMBlobData_QueryBlobByAccessOrder(instance, index, accessOrderType, out bd2);

        blobData = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? new IBlob(bd2) : null;
        return(sts);
    }
Example #3
0
 internal static extern pxcmStatus PXCMHandData_QueryHandData(IntPtr instance, AccessOrderType accessOrder, Int32 index, out IntPtr handData);
Example #4
0
 internal static extern pxcmStatus PXCMBlobData_QueryBlob(IntPtr instance, Int32 index, SegmentationImageType segmentationImageType, AccessOrderType accessOrder, out IntPtr blobData);
Example #5
0
 internal static extern pxcmStatus PXCMBlobData_QueryBlobByAccessOrder(IntPtr instance, Int32 index, AccessOrderType accessOrder, out IntPtr blobData);
Example #6
0
        /** 
            @brief Retrieve the hand object data using a specific AccessOrder and related index.
		
            @param[in] accessOrder - the order in which the hands are enumerated (accessed).
            @param[in] index - the index of the hand to be retrieved, based on the given AccessOrder.
            @param[out] handData - the information for the hand.
		
            @return PXCM_STATUS_NO_ERROR - operation succeeded.
            @return PXCM_STATUS_PARAM_UNSUPPORTED - index >= MAX_NUM_HANDS.
            @return PXCM_STATUS_DATA_UNAVAILABLE  - index >= number of detected hands.

            @see AccessOrder
            @see IHand		
        */
        public pxcmStatus QueryHandData(AccessOrderType accessOrder, Int32 index, out IHand handData)
        {
            IntPtr hd2;
            pxcmStatus sts = PXCMHandData_QueryHandData(instance, accessOrder, index, out hd2);
            handData = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? new IHand(hd2) : null;
            return sts;
        }
Example #7
0
        /** 
             @brief Retrieve the given hand's uniqueId.		
		
             @param[in] accessOrder - the order in which the hands are enumerated (accessed).
             @param[in] index - the index of the hand to be retrieved, based on the given AccessOrder.
             @param[out] handId - the hand's uniqueId.
		
             @return PXCM_STATUS_NO_ERROR - operation succeeded.
             @return PXCM_STATUS_PARAM_UNSUPPORTED - invalid parameter.

             @see AccessOrderType		
         */
        public pxcmStatus QueryHandId(AccessOrderType accessOrder, Int32 index, out Int32 handId)
        {
            return PXCMHandData_QueryHandId(instance, accessOrder, index, out handId);
        }
Example #8
0
 /**
  *   @brief Retrieve the given hand's uniqueId.
  *
  *   @param[in] accessOrder - the order in which the hands are enumerated (accessed).
  *   @param[in] index - the index of the hand to be retrieved, based on the given AccessOrder.
  *   @param[out] handId - the hand's uniqueId.
  *
  *   @return PXCM_STATUS_NO_ERROR - operation succeeded.
  *   @return PXCM_STATUS_PARAM_UNSUPPORTED - invalid parameter.
  *
  *   @see AccessOrderType
  */
 public pxcmStatus QueryHandId(AccessOrderType accessOrder, Int32 index, out Int32 handId)
 {
     return(PXCMHandData_QueryHandId(instance, accessOrder, index, out handId));
 }
Example #9
0
  /**
     @brief Retrieve an IBlob object using a specific AccessOrder and index (that relates to the given order).
     @param[in] index - the zero-based index of the requested blob (between 0 and QueryNumberOfBlobs()-1 ).
     @param[in] segmentationImageType - the image type which the blob will be mapped to. To get data mapped to color see PXCBlobConfiguration::EnableColorMapping.
     @param[in] accessOrder - the order in which the blobs are enumerated.
     @param[out] blobData - contains the extracted blob data.
  
     @return PXCM_STATUS_NO_ERROR - successful operation.
     @return PXCM_STATUS_PARAM_UNSUPPORTED - index >= configured maxBlobs.
     @return PXCM_STATUS_DATA_UNAVAILABLE  - index >= number of detected blobs or blob data is invalid.  
  
     @see AccessOrderType
     @see SegmentationImageType
 */
  public pxcmStatus QueryBlob(Int32 index,SegmentationImageType segmentationImageType, AccessOrderType accessOrderType, out IBlob blobData)
  {
      IntPtr bd2;
      pxcmStatus sts = PXCMBlobData_QueryBlob(instance, index,segmentationImageType, accessOrderType, out bd2);
      blobData = (sts >= pxcmStatus.PXCM_STATUS_NO_ERROR) ? new IBlob(bd2) : null;
      return sts;
  }
Example #10
0
 internal static extern pxcmStatus PXCMHandData_QueryHandData(IntPtr instance, AccessOrderType accessOrder, Int32 index, out IntPtr handData);
Example #11
0
 internal static extern pxcmStatus PXCMBlobData_QueryBlob(IntPtr instance, Int32 index, SegmentationImageType segmentationImageType, AccessOrderType accessOrder, out IntPtr blobData);
Example #12
0
 internal static extern pxcmStatus PXCMBlobData_QueryBlobByAccessOrder(IntPtr instance, Int32 index, AccessOrderType accessOrder, out IntPtr blobData);