MCPcopy Create free account
hub / github.com/devilsen/CZXing / ExtractLum

Function ExtractLum

czxing/src/main/cpp/zxing/src/ReadBarcode.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template<typename P>
36static 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
48class LumImagePyramid
49{

Callers 1

SetupLumImageViewFunction · 0.85

Calls 3

widthMethod · 0.45
heightMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected