提交 0744092b 编写于 作者: A Andrey Kamaev

Fixed build with gcc compiler; couple minor improvements in perf testing framework

上级 6ee1f6f6
......@@ -607,7 +607,7 @@ cvtScale_( const T* src, size_t sstep,
}
//vz optimized template specialization
template<> static void
template<> void
cvtScale_<short, short, float>( const short* src, size_t sstep,
short* dst, size_t dstep, Size size,
float scale, float shift )
......
......@@ -32,7 +32,7 @@ PERF_TEST_P( stitch, a123, testing::Values("surf", "orb"))
? new detail::BestOf2NearestMatcher(false, ORB_MATCH_CONFIDENCE)
: new detail::BestOf2NearestMatcher(false, SURF_MATCH_CONFIDENCE);
declare.time(30 * 20).iterations(50);
declare.time(30 * 20).iterations(20);
while(next())
{
......@@ -65,7 +65,7 @@ PERF_TEST_P( stitch, b12, testing::Values("surf", "orb"))
? new detail::BestOf2NearestMatcher(false, ORB_MATCH_CONFIDENCE)
: new detail::BestOf2NearestMatcher(false, SURF_MATCH_CONFIDENCE);
declare.time(30 * 20).iterations(50);
declare.time(30 * 20).iterations(20);
while(next())
{
......
......@@ -14,7 +14,7 @@ def getSetName(tset, idx, columns, short = True):
return prefix
name = tset[0].replace(".xml","").replace("_", "\n")
if prefix:
return prefix + "\n" + ("-"*int(len(prefix)*1.7)) + "\n" + name
return prefix + "\n" + ("-"*int(len(max(prefix.split("\n"), key=len))*1.5)) + "\n" + name
return name
if __name__ == "__main__":
......@@ -43,7 +43,7 @@ if __name__ == "__main__":
options.calc_relatives = False
options.calc_cr = False
if options.columns:
options.columns = [s.strip() for s in options.columns.split(",")]
options.columns = [s.strip().replace("\\n", "\n") for s in options.columns.split(",")]
# expand wildcards and filter duplicates
files = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册