updated tests and test data

pull/64/head
Alexander Shishkov 11 years ago
parent 286d6ffe77
commit 8eb40877df
  1. 2
      modules/ximgproc/test/test_main.cpp
  2. 6
      modules/ximgproc/test/test_structured_edge_detection.cpp
  3. 0
      modules/ximgproc/testdata/ximgproc/model.yml.gz
  4. 0
      modules/ximgproc/testdata/ximgproc/results/01.png
  5. 0
      modules/ximgproc/testdata/ximgproc/results/02.png
  6. 0
      modules/ximgproc/testdata/ximgproc/results/03.png
  7. 0
      modules/ximgproc/testdata/ximgproc/results/04.png
  8. 0
      modules/ximgproc/testdata/ximgproc/results/05.png
  9. 0
      modules/ximgproc/testdata/ximgproc/results/06.png
  10. 0
      modules/ximgproc/testdata/ximgproc/results/07.png
  11. 0
      modules/ximgproc/testdata/ximgproc/results/08.png
  12. 0
      modules/ximgproc/testdata/ximgproc/results/09.png
  13. 0
      modules/ximgproc/testdata/ximgproc/results/10.png
  14. 0
      modules/ximgproc/testdata/ximgproc/results/11.png
  15. 0
      modules/ximgproc/testdata/ximgproc/results/12.png
  16. 0
      modules/ximgproc/testdata/ximgproc/sources/01.png
  17. 0
      modules/ximgproc/testdata/ximgproc/sources/02.png
  18. 0
      modules/ximgproc/testdata/ximgproc/sources/03.png
  19. 0
      modules/ximgproc/testdata/ximgproc/sources/04.png
  20. 0
      modules/ximgproc/testdata/ximgproc/sources/05.png
  21. 0
      modules/ximgproc/testdata/ximgproc/sources/06.png
  22. 0
      modules/ximgproc/testdata/ximgproc/sources/07.png
  23. 0
      modules/ximgproc/testdata/ximgproc/sources/08.png
  24. 0
      modules/ximgproc/testdata/ximgproc/sources/09.png
  25. 0
      modules/ximgproc/testdata/ximgproc/sources/10.png
  26. 0
      modules/ximgproc/testdata/ximgproc/sources/11.png
  27. 0
      modules/ximgproc/testdata/ximgproc/sources/12.png
  28. 6
      modules/xphoto/test/dct_image_denoising.cpp
  29. 1
      modules/xphoto/test/simple_color_balance.cpp
  30. BIN
      modules/xphoto/testdata/dct_image_denoising/results/01.png
  31. 0
      modules/xphoto/testdata/x.png
  32. BIN
      modules/xphoto/testdata/xphoto/dct_image_denoising/results/.DS_Store
  33. BIN
      modules/xphoto/testdata/xphoto/dct_image_denoising/results/01.png
  34. 0
      modules/xphoto/testdata/xphoto/dct_image_denoising/sources/01.png
  35. BIN
      modules/xphoto/testdata/xphoto/inpainting/mask_1.png
  36. BIN
      modules/xphoto/testdata/xphoto/inpainting/src_1.jpg
  37. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/01.png
  38. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/02.png
  39. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/03.png
  40. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/04.png
  41. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/05.png
  42. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/06.png
  43. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/07.png
  44. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/08.png
  45. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/09.png
  46. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/10.png
  47. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/11.png
  48. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/12.png
  49. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/13.png
  50. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/results/14.png
  51. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/01.png
  52. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/02.png
  53. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/03.png
  54. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/04.png
  55. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/05.png
  56. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/06.png
  57. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/07.png
  58. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/08.png
  59. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/09.png
  60. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/10.png
  61. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/11.png
  62. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/12.png
  63. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/13.png
  64. 0
      modules/xphoto/testdata/xphoto/simple_white_balance/sources/14.png

@ -1,3 +1,3 @@
#include "test_precomp.hpp"
CV_TEST_MAIN("ximpgroc")
CV_TEST_MAIN("")

@ -5,10 +5,11 @@ namespace cvtest
TEST(ximpgroc_StructuredEdgeDetection, regression)
{
cv::String dir = cvtest::TS::ptr()->get_data_path();
cv::String subfolder = "cv/ximgproc/";
cv::String dir = cvtest::TS::ptr()->get_data_path() + subfolder;
int nTests = 12;
float threshold = 0.01f;
cv::String modelName = dir + "model.yml.gz";
cv::Ptr<cv::ximgproc::StructuredEdgeDetection> pDollar =
cv::ximgproc::createStructuredEdgeDetection(modelName);
@ -17,6 +18,7 @@ TEST(ximpgroc_StructuredEdgeDetection, regression)
{
cv::String srcName = dir + cv::format( "sources/%02d.png", i + 1);
cv::Mat src = cv::imread( srcName, 1 );
ASSERT_TRUE(!src.empty());
cv::String previousResultName = dir + cv::format( "results/%02d.png", i + 1 );
cv::Mat previousResult = cv::imread( previousResultName, 0 );

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 83 KiB

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Before

Width:  |  Height:  |  Size: 375 KiB

After

Width:  |  Height:  |  Size: 375 KiB

Before

Width:  |  Height:  |  Size: 471 KiB

After

Width:  |  Height:  |  Size: 471 KiB

Before

Width:  |  Height:  |  Size: 520 KiB

After

Width:  |  Height:  |  Size: 520 KiB

Before

Width:  |  Height:  |  Size: 393 KiB

After

Width:  |  Height:  |  Size: 393 KiB

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 154 KiB

Before

Width:  |  Height:  |  Size: 309 KiB

After

Width:  |  Height:  |  Size: 309 KiB

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 257 KiB

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Before

Width:  |  Height:  |  Size: 425 KiB

After

Width:  |  Height:  |  Size: 425 KiB

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 181 KiB

Before

Width:  |  Height:  |  Size: 505 KiB

After

Width:  |  Height:  |  Size: 505 KiB

Before

Width:  |  Height:  |  Size: 502 KiB

After

Width:  |  Height:  |  Size: 502 KiB

@ -7,7 +7,7 @@ namespace cvtest
cv::String dir = cvtest::TS::ptr()->get_data_path() + "dct_image_denoising/";
int nTests = 1;
double thresholds[] = {0.1};
double thresholds[] = {0.2};
int psize[] = {8};
double sigma[] = {9.0};
@ -16,11 +16,13 @@ namespace cvtest
{
cv::String srcName = dir + cv::format( "sources/%02d.png", i + 1);
cv::Mat src = cv::imread( srcName, 1 );
ASSERT_TRUE(!src.empty());
cv::String previousResultName = dir + cv::format( "results/%02d.png", i + 1 );
cv::Mat previousResult = cv::imread( previousResultName, 1 );
ASSERT_TRUE(!src.empty());
cv::Mat currentResult, fastNlMeansResult;
cv::Mat currentResult;
cv::dctDenoising(src, currentResult, sigma[i], psize[i]);

@ -12,6 +12,7 @@ namespace cvtest
{
cv::String srcName = dir + cv::format( "sources/%02d.png", i + 1);
cv::Mat src = cv::imread( srcName, 1 );
ASSERT_TRUE(!src.empty());
cv::String previousResultName = dir + cv::format( "results/%02d.png", i + 1 );
cv::Mat previousResult = cv::imread( previousResultName, 1 );

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Loading…
Cancel
Save