I want to implement BRISK using Python and OpenCV for Feature Detection and Description in drone images.
Since BRISK is also a descriptor, I want to use its description features to match two images.
How do I do it?
I want to implement BRISK using Python and OpenCV for Feature Detection and Description in drone images.
Since BRISK is also a descriptor, I want to use its description features to match two images.
How do I do it?
Copyright © 2021 Jogjafile Inc.
You can perform Feature Detection and Description with the Local Binary Descriptor
BRISK, and then, useBrute ForceorFLANNalgorithms to do Feature Matching using Python and OpenCV.In this example, I will show you Feature Detection and Matching with
BRISKthrough theBrute Forcealgorithm.First, load the input image and the image that will be used for training.
In this example, we are using those images:
image1:image2:Note that when importing the images, we use the
flags = cv.IMREAD_GRAYSCALEparameter, because in OpenCV the default color mode setting is BGR. Therefore, to work with Descriptors, we need to convert the color mode pattern from BGR to grayscale.Now we will use the
BRISKalgorithm:The features detected by the
BRISKalgorithm can be combined to find objects or patterns that are similar between different images.Now we will use the
Brute Forcealgorithm:And the output will be:
This technique is widely used in image recovery applications, motion tracking, object detection, recognition and tracking, 3D object reconstruction, among others. And you can easily modify the way you load the images. In this way, this technique can easily be applied to your problem.
To learn more about Detection, Description, and Feature Matching techniques, Local Feature Descriptors, Local Binary Descriptors, and algorithms for Feature Matching, I recommend the following repositories on GitHub: