ORB

Finally, the ORB algorithm, which is the last feature-detection algorithm we'll cover in this section.

The ORB class can be used to detect keypoints in images using the ORB, or the Oriented BRIEF (Binary Robust Independent Elementary Features) algorithm. This class encapsulates some of the methods we have already seen such as FAST or Harris to detect the keypoints. So, some of the parameters set in the class constructor or using setter functions are related to the descriptor extraction, which we'll learn about later on; nevertheless, the ORB class can be used to detect keypoints, as seen in the following example:

Here's the source code ...

Get Computer Vision with OpenCV 3 and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.