mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
- 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;
|
cv::Mat image;
|
||||||
if (image_in.type() != CV_8UC1)
|
if (image_in.type() != CV_8UC1)
|
||||||
cvtColor(image_in, image, CV_BGR2GRAY);
|
cvtColor(image_in, image, CV_BGR2GRAY);
|
||||||
|
else
|
||||||
|
image = image_in;
|
||||||
|
|
||||||
if (do_descriptors)
|
if (do_descriptors)
|
||||||
descriptors.release();
|
descriptors.release();
|
||||||
|
Loading…
Reference in New Issue
Block a user