Local and Global Information in Obstacle Detection on Railway Tracks