Remove the first element of the vector, if the length of the vector is greater than the desired length, see MidTermProject_Camera_Student.cpp line 97-99
Use the string "detectorName" MidTermProject_Camera_Student.cpp line 50 to select the detector
use the cv::Rect::contains(...) method to check if the point lies inside, see lines 142-152 in MidTermProject_Camera_Student.cpp
Use the string "descriptorName" MidTermProject_Camera_Student.cpp line 54 to select the detector
Use the strings matcherType (line 57) and selectorType (line 59) to select the different types. Also see inline comments.
Spreadsheet: https://docs.google.com/spreadsheets/d/1TBnmddn5DbPttQTVZIm9n1Z5tD7-qPWA2pFfM1eqjDs/edit?usp=sharing
- BRISK detector/descriptor is the slowest
- SIFT, AKAZE detectors/descriptor are too slow to run at the rate of the camera
- FAST (detector) + BRIEF (descriptor) and FAST+ORB are the fastest combinations
- HARRIS detector is also quite fast, but provides only a limited number of keypoints
- Regarding time, SHITOMASI+BRIEF/ORB, HARRIS+BRIEF/ORB, FAST+BRIEF/ORB, ORB+BRIEF/ORB are okay
- SHITOMASI and FAST detect keypoints quite well distributed over the backside of the car
- FAST + BRIEF
- FAST + ORB
- SHITOMASI + BRIEF or ORB