Compare Z Values of Poses with Threshold