how to calculate SIFT descriptor for MSER keypoints?
Hello,
I want to use SIFT descriptors to represent a region detected by MSER, here is my code:
MserFeatureDetector detector();
vector<KeyPoint> keypoints;
detector.detect( src_gray, keypoints );
Mat descriptors, mask( src_gray.rows, src_gray.cols, CV_8UC1, 255 );
cv::SIFT detector = SIFT::SIFT();
detector( src_gray, mask, keypoints, descriptors, true );
I get the descriptors successfully, but the keypoints of MSER won’t have octave, scale, and angle. However, I put them into SIFT extraction forcibly to get descriptors. Thus, i think the descriptors finally I get, will lost the invariant to illumination changes but still have scale & rotational invariance. Is my opinion correct? Or, it is wrong way to use?
Hey, I am currently doing similar stuff and stuck at this same problem. How did u converted MSER regions to keypoints!!!
Hello! there is a pre-written function in openCV to convert a point into a KeyPoint, maybe that's what your are looking for : https://docs.opencv.org/2.4/modules/f...