Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
 /// <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));
 }
Beispiel #4
0
 /// <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));
 }
Beispiel #5
0
 /// <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));
 }