Modified files of xfeatures2d in which opening and closing sampling pattern using FREAK is added.
mreako.cpp and mreakc.cpp are source files which has to be added in xfeatures2d module of OpenCV version 3.3.1.
xfeatures.2d is the modified file where this two classes are added.
Follow the following instrustions to add this modules :
- Download opencv and opencv_contrib from Github as mentioned on https://www.learnopencv.com/install-opencv3-on-ubuntu/.
- Add mreako.cpp and mreakc.cpp in following location "opencv_contrib\modules\xfeatures2d\src" in opencv_contrib folder after downloading.
- Replace existing xfeatures.2d in "opencv_contrib\modules\xfeatures2d\include\opencv2" by our file.
- Now build OpenCV as mentioned on https://www.learnopencv.com/install-opencv3-on-ubuntu/.
NOTE - This files are for OpenCV version 3.3.1
We have changed the sampling pattern in MREAK which is different than that of FREAK which is implemented followed by opening and closing of images.
Following is a simple example :
- Image 1
- Image 1 opened
- Image 1 closed
- Image 2
- Image 2 opened
- Image 2 closed
- All 1498 FREAK keypoints
- Best FREAK keypoints
- Best opened keypoints in MREAK
- Best closed keypoints in MREAK
- Both keypoints combined