| 34 | |
| 35 | template<typename P> |
| 36 | static LumImage ExtractLum(const ImageView& iv, P projection) |
| 37 | { |
| 38 | LumImage res(iv.width(), iv.height()); |
| 39 | |
| 40 | auto* dst = res.data(); |
| 41 | for(int y = 0; y < iv.height(); ++y) |
| 42 | for(int x = 0, w = iv.width(); x < w; ++x) |
| 43 | *dst++ = projection(iv.data(x, y)); |
| 44 | |
| 45 | return res; |
| 46 | } |
| 47 | |
| 48 | class LumImagePyramid |
| 49 | { |
no test coverage detected