| 557 | } |
| 558 | |
| 559 | bool 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 |
no test coverage detected