Пример #1
0
        /// <summary>
        /// Decodes the depth image using a specified decoder.
        /// </summary>
        /// <param name="depthImageDecoder">The depth image decoder to use.</param>
        /// <returns>A new, corresponding decoded depth image.</returns>
        public DepthImage Decode(IDepthImageFromStreamDecoder depthImageDecoder)
        {
            var depthImage = new DepthImage(this.Width, this.Height);

            depthImage.DecodeFrom(this, depthImageDecoder);
            return(depthImage);
        }
Пример #2
0
        /// <summary>
        /// Decodes the depth image using a specified decoder.
        /// </summary>
        /// <param name="depthImageDecoder">The depth image decoder to use.</param>
        /// <returns>A new, corresponding decoded depth image.</returns>
        public DepthImage Decode(IDepthImageFromStreamDecoder depthImageDecoder)
        {
            var depthImage = new DepthImage(this.Width, this.Height, this.DepthValueSemantics, this.DepthValueToMetersScaleFactor);

            depthImage.DecodeFrom(this, depthImageDecoder);
            return(depthImage);
        }