A Generic Image Processing Pipeline for Enhancing Accuracy and Robustness of Visual Odometry