Merge pull request #1088 from apacha:brisk_noDescriptors_fix
This commit is contained in:
commit
894b30b34d
@ -525,7 +525,11 @@ BRISK::operator()( InputArray _image, InputArray _mask, vector<KeyPoint>& keypoi
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user