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

Function FindPureFinderPattern

czxing/src/main/cpp/zxing/src/aztec/AZDetector.cpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static std::vector<ConcentricPattern> FindPureFinderPattern(const BitMatrix& image)
111{
112 int left, top, width, height;
113 if (!image.findBoundingBox(left, top, width, height, 11)) // 11 is the size of an Aztec Rune, see ISO/IEC 24778:2008(E) Annex A
114 return {};
115
116 PointF p(left + width / 2, top + height / 2);
117 constexpr auto PATTERN = FixedPattern<7, 7>{1, 1, 1, 1, 1, 1, 1};
118 if (auto pattern = LocateConcentricPattern(image, PATTERN, p, width / 2))
119 return {*pattern};
120 else
121 return {};
122}
123
124static std::vector<ConcentricPattern> FindFinderPatterns(const BitMatrix& image, bool tryHarder)
125{

Callers 1

DetectFunction · 0.85

Calls 2

LocateConcentricPatternFunction · 0.85
findBoundingBoxMethod · 0.80

Tested by

no test coverage detected