| 108 | } |
| 109 | |
| 110 | static 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 | |
| 124 | static std::vector<ConcentricPattern> FindFinderPatterns(const BitMatrix& image, bool tryHarder) |
| 125 | { |
no test coverage detected