mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
quickly corrected the previous refactoring of features2d: moved from set(SOME_PROP, val) to setSomeProp(val)
This commit is contained in:
@@ -255,8 +255,8 @@ protected:
|
||||
fs.open( string(ts->get_data_path()) + FEATURES2D_DIR + "/keypoints.xml.gz", FileStorage::WRITE );
|
||||
if( fs.isOpened() )
|
||||
{
|
||||
ORB fd;
|
||||
fd.detect(img, keypoints);
|
||||
Ptr<ORB> fd = ORB::create();
|
||||
fd->detect(img, keypoints);
|
||||
write( fs, "keypoints", keypoints );
|
||||
}
|
||||
else
|
||||
|
||||
@@ -267,8 +267,8 @@ TEST( Features2d_Detector_GFTT, regression )
|
||||
|
||||
TEST( Features2d_Detector_Harris, regression )
|
||||
{
|
||||
Ptr<FeatureDetector> gftt = GFTTDetector::create();
|
||||
gftt->set(GFTTDetector::USE_HARRIS_DETECTOR, 1);
|
||||
Ptr<GFTTDetector> gftt = GFTTDetector::create();
|
||||
gftt->setHarrisDetector(true);
|
||||
CV_FeatureDetectorTest test( "detector-harris", gftt);
|
||||
test.safe_run();
|
||||
}
|
||||
|
||||
@@ -140,8 +140,8 @@ TEST(Features2d_Detector_Keypoints_HARRIS, validation)
|
||||
|
||||
TEST(Features2d_Detector_Keypoints_GFTT, validation)
|
||||
{
|
||||
Ptr<FeatureDetector> gftt = GFTTDetector::create();
|
||||
gftt->set(GFTTDetector::USE_HARRIS_DETECTOR, 1);
|
||||
Ptr<GFTTDetector> gftt = GFTTDetector::create();
|
||||
gftt->setHarrisDetector(true);
|
||||
CV_FeatureDetectorKeypointsTest test(gftt);
|
||||
test.safe_run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user