Don't automatically convert to grayscale (keep previous behavior.)
This commit is contained in:
@@ -226,8 +226,8 @@ void FREAK::computeImpl( const Mat& image, std::vector<KeyPoint>& keypoints, Mat
|
|||||||
|
|
||||||
// Convert to gray if not already
|
// Convert to gray if not already
|
||||||
Mat grayImage = image;
|
Mat grayImage = image;
|
||||||
if( image.channels() > 1 )
|
// if( image.channels() > 1 )
|
||||||
cvtColor( image, grayImage, COLOR_BGR2GRAY );
|
// cvtColor( image, grayImage, COLOR_BGR2GRAY );
|
||||||
|
|
||||||
// Use 32-bit integers if we won't overflow in the integral image
|
// Use 32-bit integers if we won't overflow in the integral image
|
||||||
if ((image.depth() == CV_8U || image.depth() == CV_8S) &&
|
if ((image.depth() == CV_8U || image.depth() == CV_8S) &&
|
||||||
|
Reference in New Issue
Block a user