Learning-based vision and its application to autonomous indoor navigation