I guess you do not need to call NuiDepthPixelToDepth since you will pass the array to NuiTransformDepthImageToSkeleton anyway