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

Function assertImageNear

test/arrayfire_test.cpp:802–813  ·  view source on GitHub ↗

Called by ASSERT_IMAGES_NEAR

Source from the content-addressed store, hash-verified

800
801// Called by ASSERT_IMAGES_NEAR
802::testing::AssertionResult assertImageNear(std::string aName, std::string bName,
803 std::string maxAbsDiffName,
804 const af_array &a, const af_array &b,
805 float maxAbsDiff) {
806 UNUSED(maxAbsDiffName);
807 af_array aa = 0, bb = 0;
808 af_retain_array(&aa, a);
809 af_retain_array(&bb, b);
810 af::array aaa(aa);
811 af::array bbb(bb);
812 return assertImageEq(aName, bName, aaa, bbb, maxAbsDiff);
813}
814
815// Called by ASSERT_IMAGES_NEAR
816::testing::AssertionResult assertImageNear(std::string aName, std::string bName,

Callers

nothing calls this directly

Calls 2

assertImageEqFunction · 0.85
af_retain_arrayFunction · 0.50

Tested by

no test coverage detected