Made code concise for ORB implementation and tests

This commit is contained in:
Skreg 2024-11-21 12:00:48 +00:00 committed by GitHub
parent f441d15b64
commit 0136de9aff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);