Rigorous determination of cross sections via complex transformations