Boring changes - legacy.

This commit is contained in:
Roman Donchenko
2013-08-13 18:29:36 +04:00
parent 34127ba80f
commit eaa7fcc3e6
4 changed files with 26 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ cvExtractSURF( const CvArr* _img, const CvArr* _mask,
Mat descr;
Ptr<Feature2D> surf = Algorithm::create<Feature2D>("Feature2D.SURF");
if( surf.empty() )
if( !surf )
CV_Error(CV_StsNotImplemented, "OpenCV was built without SURF support");
surf->set("hessianThreshold", params.hessianThreshold);
@@ -107,10 +107,10 @@ CV_IMPL CvSeq*
cvGetStarKeypoints( const CvArr* _img, CvMemStorage* storage,
CvStarDetectorParams params )
{
Ptr<StarDetector> star = new StarDetector(params.maxSize, params.responseThreshold,
params.lineThresholdProjected,
params.lineThresholdBinarized,
params.suppressNonmaxSize);
Ptr<StarDetector> star(new StarDetector(params.maxSize, params.responseThreshold,
params.lineThresholdProjected,
params.lineThresholdBinarized,
params.suppressNonmaxSize));
std::vector<KeyPoint> kpts;
star->detect(cvarrToMat(_img), kpts, Mat());