Now it behaves like ORB (and how it is documented), and you can call BRISK to just generate feature points and no descriptors.
bool doOrientation=true;
if (useProvidedKeypoints)
doOrientation = false;
- computeDescriptorsAndOrOrientation(_image, _mask, keypoints, _descriptors, true, doOrientation,
+
+ // If the user specified cv::noArray(), this will yield false. Otherwise it will return true.
+ bool doDescriptors = _descriptors.needed();
+
+ computeDescriptorsAndOrOrientation(_image, _mask, keypoints, _descriptors, doDescriptors, doOrientation,
useProvidedKeypoints);
}