MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / TEST

Function TEST

test/canny.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84TEST(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
95template<typename T>
96void cannyImageOtsuTest(string pTestFile, bool isColor) {

Callers

nothing calls this directly

Calls 7

loadImageFunction · 0.85
cannyFunction · 0.85
af_create_arrayFunction · 0.50
af_cannyFunction · 0.50
af_release_arrayFunction · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected