mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
Made code concise for ORB implementation and tests
This commit is contained in:
parent
f441d15b64
commit
0136de9aff
@ -1039,7 +1039,7 @@ void ORB_Impl::detectAndCompute( InputArray _image, InputArray _mask,
|
||||
Mat image = _image.getMat(), mask;
|
||||
if (!_mask.empty())
|
||||
{
|
||||
cv::threshold(_mask.getMat(), mask, 0, 255, cv::THRESH_BINARY);
|
||||
threshold(_mask, mask, 0, 255, THRESH_BINARY);
|
||||
}
|
||||
if( image.type() != CV_8UC1 )
|
||||
cvtColor(_image, image, COLOR_BGR2GRAY);
|
||||
|
Loading…
Reference in New Issue
Block a user