Detecting features

OpenCV provides a number of classes to deal with detecting features (keypoints) from an image. Each class has its own implementation depending on the specific algorithm it implements and may require a different set of parameters to perform correctly, or with the best performance. However, what all of them have in common is the detect function (because they are all subclasses of Feature2D) mentioned previously, which can be used to detect a set of keypoints from an image. A keypoint or feature in OpenCV is a KeyPoint class instance that contains most of the information needed to be stored for a proper keypoint (these terms, namely keypoint and feature, are used interchangeably, and a lot, so just try to get used to it). ...

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.