/// <summary> /// Gets the current depth confidence level. /// </summary> /// <returns>Integer value of the current depth confidence level.</returns> public int GetDepthConfidenceLevel() { int confidenceLevel = 0; HardwareParametersAPI.HardwareDepthConfidenceLevel(ref confidenceLevel); return(confidenceLevel); }
/// <summary> /// Gets the current depth noise level. /// </summary> /// <returns> Integer value of the current depth noise level.</returns> public int GetDepthNoiseLevel() { int noiseLevel = 0; HardwareParametersAPI.HardwareDepthNoiseLevel(ref noiseLevel); return(noiseLevel); }
/// <summary> /// Sets the noise level of the hardware. /// This must be done before depth is started. /// </summary> /// <param name="noiseLevel"> A number x to x with x /// requesting the least noise.</param> /// <returns> True if the noise level was set.</returns> public bool SetDepthNoiseLevel(int noiseLevel) { return((int)Common.RetCodes.kCAPISuccess == HardwareParametersAPI.HardwareDepthSetNoiseLevel(noiseLevel)); }
/// <summary> /// Sets the depth confidence of the hardware. /// This must be done before depth is started. /// </summary> /// <param name="confidenceLevel">A number x to x with x /// requesting the most confidence.</param> /// <returns> True if the depth confidence was set.</returns> public bool SetDepthConfidenceLevel(int confidenceLevel) { return((int)Common.RetCodes.kCAPISuccess == HardwareParametersAPI.HardwareDepthSetConfidenceLevel(confidenceLevel)); }
/// <summary> /// Gets the horizontal field of view. /// </summary> /// <param name="visibleWidth"> TODO.</param> /// <returns> Horizontal field of view.</returns> public static float HorizontalFieldOfView(int visibleWidth) { return(HardwareParametersAPI.HardwareCameraHorizontalFieldOfView(visibleWidth)); }