improved the condition in the FAST test

pull/32/head
Vadim Pisarevsky 13 years ago
parent d2613dd9f6
commit 2d334401b1
  1. 3
      modules/features2d/test/test_fast.cpp

@ -112,7 +112,8 @@ void CV_FastTest::run( int )
// We only have testing data for 9_16 but it actually works equally well for 7_12 // We only have testing data for 9_16 but it actually works equally well for 7_12
if ((type==1) || (type==2)){ if ((type==1) || (type==2)){
if ( 0 != norm(exp_kps1, kps1, NORM_L2) || 0 != norm(exp_kps2, kps2, NORM_L2)) if ( exp_kps1.size != kps1.size || 0 != norm(exp_kps1, kps1, NORM_L2) ||
exp_kps2.size != kps2.size || 0 != norm(exp_kps2, kps2, NORM_L2))
{ {
ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH); ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH);
return; return;

Loading…
Cancel
Save