OpenCV-Python dense SIFT

后端 未结 3 916
小蘑菇
小蘑菇 2021-01-01 22:17

OpenCV has very good documentation on generating SIFT descriptors, but this is a version of \"weak SIFT\", where the key points are detected by the original Lowe algorithm.

3条回答
  •  既然无缘
    2021-01-01 22:47

    I'm not sure what your goal is here, but be warned, the SIFT descriptor calculation is extremely slow and was never designed to be used in a dense fashion. That being said, OpenCV makes it fairly trivial to do so.

    Basically instead of using sift.detect(), you just fill in the keypoint array yourself by making a grid a keypoints however dense you want them. Then a descriptor will be calculated for each keypoint when you pass the keypoints to sift.compute().

    Depending on the size of your image and the speed of your machine, this might take a very long time. If copmutational time is a factor, I suggest you look at some of the binary descriptors OpenCV has to offer.

提交回复
热议问题