- fixed the grayscale case
This commit is contained in:
parent
3ed829af71
commit
aa6c2bfbbb
@ -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…
x
Reference in New Issue
Block a user