Added calcSkeletonConfidence