| 31 | } |
| 32 | |
| 33 | std::shared_ptr<Array> scale( |
| 34 | const std::shared_ptr<const Array>& image, |
| 35 | double scale) { |
| 36 | int64_t tw = std::lround(scale * width(image)); |
| 37 | int64_t th = std::lround(scale * height(image)); |
| 38 | return resize(image, tw, th); |
| 39 | } |
| 40 | |
| 41 | std::shared_ptr<Array> |
| 42 | resize(const std::shared_ptr<const Array>& image, int64_t dw, int64_t dh) { |
no test coverage detected