added Ptr::operator==

This commit is contained in:
Anatoly Baksheev
2012-12-15 22:09:21 +04:00
parent aabb40e34d
commit 94c310fc14
6 changed files with 12 additions and 5 deletions

View File

@@ -350,7 +350,7 @@ void SurfFeaturesFinder::find(const Mat &image, ImageFeatures &features)
Mat gray_image;
CV_Assert(image.type() == CV_8UC3);
cvtColor(image, gray_image, CV_BGR2GRAY);
if (surf == 0)
if (surf.empty())
{
detector_->detect(gray_image, features.keypoints);
extractor_->compute(gray_image, features.keypoints, features.descriptors);