MCPcopy Create free account
hub / github.com/davisking/dlib / perform_test

Method perform_test

dlib/test/image.cpp:2695–2791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2693 {}
2694
2695 void perform_test (
2696 )
2697 {
2698 image_test();
2699 run_hough_test();
2700 test_extract_image_chips();
2701 test_integral_image<long, unsigned char>();
2702 test_integral_image<double, int>();
2703 test_integral_image<long, unsigned char>();
2704 test_integral_image<double, float>();
2705
2706 test_zero_border_pixels();
2707 test_gaussian_filter();
2708
2709 test_filtering<unsigned char>(false,1);
2710 test_filtering<unsigned char>(true,1);
2711 test_filtering<unsigned char>(false,3);
2712 test_filtering<unsigned char>(true,3);
2713 test_filtering<int>(false,1);
2714 test_filtering<int>(true,1);
2715 test_filtering<int>(false,3);
2716 test_filtering<int>(true,3);
2717
2718 test_label_connected_blobs();
2719 test_label_connected_blobs2();
2720 test_downsampled_filtering();
2721
2722 test_segment_image<unsigned char>();
2723 test_segment_image<unsigned short>();
2724 test_segment_image<double>();
2725 test_segment_image<int>();
2726 test_segment_image<rgb_pixel>();
2727 test_segment_image<rgb_alpha_pixel>();
2728
2729 test_dng_floats<float>(1);
2730 test_dng_floats<double>(1);
2731 test_dng_floats<long double>(1);
2732 test_dng_floats<float>(1e30);
2733 test_dng_floats<double>(1e30);
2734 test_dng_floats<long double>(1e30);
2735
2736 test_dng_float_int();
2737
2738 dlib::rand rnd;
2739 for (int i = 0; i < 10; ++i)
2740 {
2741 // the spatial filtering stuff is the same as xcorr_same when the filter
2742 // sizes are odd.
2743 test_filtering2(3,3,rnd);
2744 test_filtering2(5,5,rnd);
2745 test_filtering2(7,7,rnd);
2746 }
2747
2748 for (int i = 0; i < 100; ++i)
2749 test_filtering_center<float>(rnd);
2750 for (int i = 0; i < 100; ++i)
2751 test_filtering_center<int>(rnd);
2752 for (int i = 0; i < 100; ++i)

Callers

nothing calls this directly

Calls 15

image_testFunction · 0.85
run_hough_testFunction · 0.85
test_extract_image_chipsFunction · 0.85
test_zero_border_pixelsFunction · 0.85
test_gaussian_filterFunction · 0.85
test_dng_float_intFunction · 0.85
test_filtering2Function · 0.85
print_spinnerFunction · 0.85
assign_all_pixelsFunction · 0.85

Tested by

no test coverage detected