Replace flann and vlfeat with OpenCV.