Ejemplo n.º 1
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);
    }
Ejemplo n.º 2
0
 internal static extern pxcmStatus PXCMBlobData_QueryBlob(IntPtr instance, Int32 index, SegmentationImageType segmentationImageType, AccessOrderType accessOrder, out IntPtr blobData);
Ejemplo n.º 3
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;
  }
Ejemplo n.º 4
0
 internal static extern pxcmStatus PXCMBlobData_QueryBlob(IntPtr instance, Int32 index, SegmentationImageType segmentationImageType, AccessOrderType accessOrder, out IntPtr blobData);