- fixed the grayscale case

pull/13383/head
Vincent Rabaud 14 years ago
parent 3ed829af71
commit aa6c2bfbbb
  1. 2
      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();

Loading…
Cancel
Save