projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c657124
)
Made small change which fixes the situation, when ORB does not find any descriptors...
author
Leonid Beynenson
<no@email>
Fri, 23 Mar 2012 12:06:49 +0000
(12:06 +0000)
committer
Leonid Beynenson
<no@email>
Fri, 23 Mar 2012 12:06:49 +0000
(12:06 +0000)
modules/features2d/src/orb.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/orb.cpp
b/modules/features2d/src/orb.cpp
index
4255cce
..
d6c59de
100644
(file)
--- a/
modules/features2d/src/orb.cpp
+++ b/
modules/features2d/src/orb.cpp
@@
-932,7
+932,12
@@
void ORB::operator()( InputArray _image, InputArray _mask, vector<KeyPoint>& _ke
// Compute the descriptors
if (do_descriptors)
{
- Mat desc = descriptors.rowRange(offset, offset + nkeypoints);
+ Mat desc;
+ if (!descriptors.empty())
+ {
+ desc = descriptors.rowRange(offset, offset + nkeypoints);
+ }
+
offset += nkeypoints;
// preprocess the resized image
Mat& workingMat = imagePyramid[level];