/** * @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); }
internal static extern pxcmStatus PXCMBlobData_QueryBlob(IntPtr instance, Int32 index, SegmentationImageType segmentationImageType, AccessOrderType accessOrder, out IntPtr blobData);
/** @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; }