新版的matlab Computer Vision System Toolbox中已经包含了BRISK算法,相关函数为
points = detectBRISKFeatures(I)
points = detectBRISKFeatures(I,Name,Value)
[features, vpoints] = extractFeatures(I, points,'Method','BRISK');
然而在extractfeatures中需要注意:“The function extracts descriptors from a region around each interest point. If the region lies outside of the image, the function cannot compute a feature descriptor for that point. When the point of interest lies too close to the edge of the image, the function cannot compute the feature descriptor. In this case, the function ignores the point. The point is not included in the valid points output.”
如果有些特征点相邻区域在图片边缘部分,则不会生成相应的描述子,所以会出现Keypoints数目>Features数目的情况,需要注意!