A single camera inspection system to detect and localize obstacles on railways based on manifold Kalman filtering