Example #1
0
        private string StreamOptionToString(PXCMCapture.Device.StreamOption streamOption)
        {
            switch (streamOption)
            {
            case PXCMCapture.Device.StreamOption.STREAM_OPTION_UNRECTIFIED:
                return(" RAW");

            case (PXCMCapture.Device.StreamOption) 0x20000: // Depth Confidence
                return(" + Confidence");

            case PXCMCapture.Device.StreamOption.STREAM_OPTION_DEPTH_PRECALCULATE_UVMAP:
            case PXCMCapture.Device.StreamOption.STREAM_OPTION_STRONG_STREAM_SYNC:
            case PXCMCapture.Device.StreamOption.STREAM_OPTION_ANY:
                return("");

            default:
                return(" (" + streamOption.ToString() + ")");
            }
        }
Example #2
0
 internal static extern pxcmStatus PXCMCalibration_QueryStreamProjectionParametersEx(IntPtr instance, PXCMCapture.StreamType streamType, PXCMCapture.Device.StreamOption options, [Out] StreamCalibration calibration, [Out] StreamTransform transformation);
Example #3
0
 /**
  * @brief Query camera calibration and transformation data for a sensor according to user defined options.
  * @param[in]  streamType      The stream type which is produced by the sensor.
  * @param[in]  options         The options that selects specific calibration and transformation data which is produced by the sensor.
  * @param[out] calibration     The intrinsics calibration parameters of the sensor.
  * @param[out] transformation  The extrinsics transformation parameters from the sensor to the camera coordinate system origin.
  * @return PXCM_STATUS_NO_ERROR Successful execution.
  */
 public pxcmStatus QueryStreamProjectionParametersEx(PXCMCapture.StreamType streamType, PXCMCapture.Device.StreamOption options, out StreamCalibration calibration, out StreamTransform transformation)
 {
     calibration    = new StreamCalibration();
     transformation = new StreamTransform();
     return(PXCMCalibration_QueryStreamProjectionParametersEx(instance, streamType, options, calibration, transformation));
 }