In my problem, I have a set of predefined keypoints. I wanted to generate a set of SIFT descriptors with these keypoints. Therefore I do not need to call the sift.detectAndCompute function. I was trying to use sift.compute function to do this for me (according to the tutorial), however there says that "compute" is not an attribute of SIFT. Any idea about this problem? Thanks