Aiming at the problem of long running time and low matching accuracy in image matching process,random sample consensus ( RANSAC) algorithm is used to optimize the speed-up of robust features ( SURF)optimization algorithm. As a result,an adaptable algorithm is proposed to optimize image matching. Firstly,theSURF operator is used for feature detection and feature description. Then the neighbor algorithm is used to prematchthe feature points. Finally,the random sampling consistency ( RANSAC) algorithm is used to optimize thematching results. The scale invariant feature transform ( SIFT) algorithm,SURF algorithm,and the proposedoptimization algorithm are compared in the same experimental environment. Compared with the SIFT algorithm andthe SURF algorithm,the optimization algorithm reduces the number of matching point pairs to 38 and 18 pairs,excluding mismatched points,improving the matching accuracy,and reducing the running time of the algorithm.