Exemplo n.º 1
0
        public static CameraSettings ReadDefaultFrom(PXCMCapture.Device device)
        {
            CameraSettings result = new CameraSettings();

            result.DepthConfidenceThreshold = (ushort)device.QueryDepthConfidenceThresholdInfo().defaultValue;
            result.IVCAMAccuracy            = (int)device.QueryIVCAMAccuracyDefaultValue();
            result.IVCAMFilterOption        = (int)device.QueryIVCAMFilterOptionInfo().defaultValue;
            result.IVCAMLaserPower          = (int)device.QueryIVCAMLaserPowerInfo().defaultValue;
            result.IVCAMMotionRangeTradeOff = (int)device.QueryIVCAMMotionRangeTradeOffInfo().defaultValue;
            result.changed = true;
            return(result);
        }
Exemplo n.º 2
0
 public static PXCMCapture.Device.PropertyInfo[] ReadPropInfo(PXCMCapture.Device device)
 {
     PXCMCapture.Device.PropertyInfo[] propInfo = new PXCMCapture.Device.PropertyInfo[5];
     propInfo[0] = device.QueryDepthConfidenceThresholdInfo();
     propInfo[1] = new PXCMCapture.Device.PropertyInfo()
     {
         range = { min = 0, max = 2 }
     };                                                                                    //device.QueryIVCAMAccuracy();
     propInfo[2] = device.QueryIVCAMFilterOptionInfo();
     propInfo[3] = device.QueryIVCAMLaserPowerInfo();
     propInfo[4] = device.QueryIVCAMMotionRangeTradeOffInfo();
     return(propInfo);
 }