CCT.NUI.HandTracking.ShapeHandDataFactory.DetectPalm C# (CSharp) Method

DetectPalm() private method

private DetectPalm ( Shape shape, Contour contour ) : Palm
shape CCT.NUI.Core.Shape.Shape
contour CCT.NUI.Core.Shape.Contour
return Palm
        private Palm DetectPalm(Shape shape, Contour contour)
        {
            var candidates = shape.Points;
            Palm palm = null;

            if (this.settings.DetectCenterOfPalm && shape.PointCount > 0 && contour.Count > 0)
            {
                palm = this.palmFinder.FindCenter(shape.ConvexHull, contour, shape.Points);
            }
            return palm;
        }