add rotation tests for the descriptors

This commit is contained in:
Vincent Rabaud
2012-08-24 03:42:58 +02:00
committed by Vadim Pisarevsky
parent b325b2f9a4
commit 92da6d381b
2 changed files with 39 additions and 0 deletions

View File

@@ -530,6 +530,9 @@ BRISK::operator()( InputArray _image, InputArray _mask, vector<KeyPoint>& keypoi
OutputArray _descriptors, bool useProvidedKeypoints) const
{
Mat image = _image.getMat(), mask = _mask.getMat();
if( image.type() != CV_8UC1 )
cvtColor(image, image, CV_BGR2GRAY);
if (!useProvidedKeypoints)
detectImpl(image, keypoints, mask);