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

Function isBetween

apps/oidnTest.cpp:559–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559bool isBetween(const std::shared_ptr<ImageBuffer>& image, float a, float b)
560{
561 for (size_t i = 0; i < image->getSize(); ++i)
562 {
563 const float x = image->get(i);
564 if (!std::isfinite(x) || x < a || x > b)
565 return false;
566 }
567 return true;
568}
569
570// -------------------------------------------------------------------------------------------------
571

Callers 4

oidnTest.cppFile · 0.85
sanitizationTestFunction · 0.85

Calls 2

getSizeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected