Horizon extraction