MCPcopy Create free account
hub / github.com/RenderKit/oidn / compareImage

Function compareImage

apps/utils/image_buffer.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 bool compareImage(const ImageBuffer& image, const ImageBuffer& ref)
89 {
90 assert(ref.getDims() == image.getDims());
91
92 for (size_t i = 0; i < image.getSize(); ++i)
93 {
94 const double actual = image.get(i);
95 const double expect = ref.get(i);
96
97 if (actual != expect)
98 return false;
99 }
100
101 return true;
102 }
103
104 std::tuple<size_t, double> compareImage(const ImageBuffer& image,
105 const ImageBuffer& ref,

Callers 2

oidnTest.cppFile · 0.85
mainFunction · 0.85

Calls 2

getSizeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected