Visual Odometry with Dynamic Object Detection by Complementary Integration of Optical Flows and Pattern Recognition