July 2017
Intermediate to advanced
382 pages
9h 13m
English
SIFT has proved to be really good, but it is not fast enough for most applications. This is where Speeded Up Robust Features (SURF) comes in, which has replaced the computationally expensive computations of SIFT with a box filter.
In OpenCV, SURF works in the exact same way as SIFT:
In [14]: surf = cv2.xfeatures2d.SURF_create()In [15]: kp = surf.detect(img_bgr)In [16]: img_kp = cv2.drawKeypoints(img_rgb, kp, img_kp, flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)In [17]: plt.imshow(img_kp)Out[17]: <matplotlib.image.AxesImage at 0x2027dc494a8>
However, SURF detects a lot more features than SIFT, leading to the following plot:
After computing the feature descriptors, ...
Read now
Unlock full access