PERF_TEST_P(surf, detect, testing::Values(SURF_IMAGES))
{
- String filename = getDataPath(GetParam());
+ string filename = getDataPath(GetParam());
Mat frame = imread(filename, IMREAD_GRAYSCALE);
-
- if (frame.empty())
- FAIL() << "Unable to load source image " << filename;
+ ASSERT_FALSE(frame.empty()) << "Unable to load source image " << filename;
Mat mask;
declare.in(frame).time(90);
PERF_TEST_P(surf, extract, testing::Values(SURF_IMAGES))
{
- String filename = getDataPath(GetParam());
+ string filename = getDataPath(GetParam());
Mat frame = imread(filename, IMREAD_GRAYSCALE);
-
- if (frame.empty())
- FAIL() << "Unable to load source image " << filename;
+ ASSERT_FALSE(frame.empty()) << "Unable to load source image " << filename;
Mat mask;
declare.in(frame).time(90);
PERF_TEST_P(surf, full, testing::Values(SURF_IMAGES))
{
- String filename = getDataPath(GetParam());
+ string filename = getDataPath(GetParam());
Mat frame = imread(filename, IMREAD_GRAYSCALE);
-
- if (frame.empty())
- FAIL() << "Unable to load source image " << filename;
+ ASSERT_FALSE(frame.empty()) << "Unable to load source image " << filename;
Mat mask;
declare.in(frame).time(90);
[1] http://www.ipol.im/pub/algo/my_affine_sift/
USAGE
- asift.py [--feature=<sift|surf|orb>[-flann]] [ <image1> <image2> ]
+ asift.py [--feature=<sift|surf|orb|brisk>[-flann]] [ <image1> <image2> ]
- --feature - Feature to use. Can be sift, surf of orb. Append '-flann' to feature name
- to use Flann-based matcher instead bruteforce.
+ --feature - Feature to use. Can be sift, surf, orb or brisk. Append '-flann'
+ to feature name to use Flann-based matcher instead bruteforce.
- Press left mouse button on a feature point to see its mathcing point.
+ Press left mouse button on a feature point to see its matching point.
'''
import numpy as np