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

Function EstimatePosition

czxing/src/main/cpp/zxing/src/oned/ODDataBarCommon.cpp:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154Position EstimatePosition(const Pair& first, const Pair& last)
155{
156 if (!IsStacked(first, last))
157 return Line((first.y + last.y) / 2, first.xStart, last.xStop);
158 else
159 return Position{{first.xStart, first.y}, {first.xStop, first.y}, {last.xStop, last.y}, {last.xStart, last.y}};
160}
161
162int EstimateLineCount(const Pair& first, const Pair& last)
163{

Callers 2

decodePatternMethod · 0.85
decodePatternMethod · 0.85

Calls 2

IsStackedFunction · 0.85
LineFunction · 0.85

Tested by

no test coverage detected