projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed829a
)
- fixed the grayscale case
author
Vincent Rabaud
<no@email>
Thu, 2 Jun 2011 23:12:52 +0000
(23:12 +0000)
committer
Vincent Rabaud
<no@email>
Thu, 2 Jun 2011 23:12:52 +0000
(23:12 +0000)
modules/features2d/src/orb.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/orb.cpp
b/modules/features2d/src/orb.cpp
index
7f35118
..
2e6793e
100644
(file)
--- a/
modules/features2d/src/orb.cpp
+++ b/
modules/features2d/src/orb.cpp
@@
-554,6
+554,8
@@
void ORB::operator()(const cv::Mat &image_in, const cv::Mat &mask, std::vector<c
cv::Mat image;
if (image_in.type() != CV_8UC1)
cvtColor(image_in, image, CV_BGR2GRAY);
+ else
+ image = image_in;
if (do_descriptors)
descriptors.release();