ColorGlove.Filter.AdjustDepth C# (CSharp) Method

AdjustDepth() private static method

private static AdjustDepth ( ProcessorState state ) : void
state ProcessorState
return void
        private static void AdjustDepth(ProcessorState state)
        {
            // Michael's plan: Can add virtual wall here
            // depth[i] = min(depth[i], 2000)
            for (int i = 0; i < state.depth.Length; i++)
                state.depth[i] = (short)(state.depth[i] >> DepthImageFrame.PlayerIndexBitmaskWidth);
        }