Seol mar théacs é seo: Robust higher order potentials for enforcing label consistency