Inverting the angular correlation function