diff --git a/modules/features2d/test/test_descriptors_invariance.cpp b/modules/features2d/test/test_descriptors_invariance.cpp index 1edb7807be..2ab37dd5ce 100644 --- a/modules/features2d/test/test_descriptors_invariance.cpp +++ b/modules/features2d/test/test_descriptors_invariance.cpp @@ -11,7 +11,7 @@ using std::tr1::make_tuple; using std::tr1::get; using namespace testing; -#define SHOW_DEBUG_LOG 0 +#define SHOW_DEBUG_LOG 1 typedef std::tr1::tuple, Ptr, float> String_FeatureDetector_DescriptorExtractor_Float_t; @@ -72,7 +72,7 @@ TEST_P(DescriptorRotationInvariance, rotation) vector keypoints0; Mat descriptors0; featureDetector->detect(image0, keypoints0, mask0); - std::cout << "Intial keypoints: " << keypoints0.size() << std::endl; + std::cout << "Keypoints: " << keypoints0.size() << std::endl; EXPECT_GE(keypoints0.size(), 15u); descriptorExtractor->compute(image0, keypoints0, descriptors0); @@ -109,7 +109,7 @@ TEST_P(DescriptorRotationInvariance, rotation) #if SHOW_DEBUG_LOG std::cout << "angle = " << angle - << ", keypoints = " << keypoints1.size() + << ", inliers = " << descInliersCount << ", descInliersRatio = " << static_cast(descInliersCount) / keypoints0.size() << std::endl; #endif @@ -121,6 +121,7 @@ TEST_P(DescriptorScaleInvariance, scale) { vector keypoints0; featureDetector->detect(image0, keypoints0); + std::cout << "Keypoints: " << keypoints0.size() << std::endl; EXPECT_GE(keypoints0.size(), 15u); Mat descriptors0; descriptorExtractor->compute(image0, keypoints0, descriptors0); @@ -159,6 +160,7 @@ TEST_P(DescriptorScaleInvariance, scale) #if SHOW_DEBUG_LOG std::cout << "scale = " << scale + << ", inliers = " << descInliersCount << ", descInliersRatio = " << static_cast(descInliersCount) / keypoints0.size() << std::endl; #endif diff --git a/modules/features2d/test/test_detectors_invariance.cpp b/modules/features2d/test/test_detectors_invariance.cpp index 86a67b37e4..873bf46472 100644 --- a/modules/features2d/test/test_detectors_invariance.cpp +++ b/modules/features2d/test/test_detectors_invariance.cpp @@ -11,7 +11,7 @@ using std::tr1::make_tuple; using std::tr1::get; using namespace testing; -#define SHOW_DEBUG_LOG 0 +#define SHOW_DEBUG_LOG 1 typedef std::tr1::tuple, float, float> String_FeatureDetector_Float_Float_t; const static std::string IMAGE_TSUKUBA = "features2d/tsukuba.png";