| 82 | } |
| 83 | |
| 84 | TEST(Canny, DISABLED_Exact) { |
| 85 | using namespace af; |
| 86 | array img = loadImage(TEST_DIR "/CannyEdgeDetector/woman.jpg", false); |
| 87 | |
| 88 | array out = canny(img, AF_CANNY_THRESHOLD_AUTO_OTSU, 0.08, 0.32, 3, false); |
| 89 | array gold = |
| 90 | loadImage(TEST_DIR "/CannyEdgeDetector/woman_edges.jpg", false) > 3; |
| 91 | |
| 92 | ASSERT_ARRAYS_EQ(gold, out); |
| 93 | } |
| 94 | |
| 95 | template<typename T> |
| 96 | void cannyImageOtsuTest(string pTestFile, bool isColor) { |
nothing calls this directly
no test coverage detected