public abstract class AbstractRSSReader extends OneDReader
OneDReader
implementations that read barcodes in the RSS family
of formats.Modifier and Type | Field and Description |
---|---|
private int[] |
dataCharacterCounters |
private int[] |
decodeFinderCounters |
private int[] |
evenCounts |
private float[] |
evenRoundingErrors |
private static float |
MAX_AVG_VARIANCE |
private static float |
MAX_FINDER_PATTERN_RATIO
Maximum ratio 12:14 (plus 0.5 for variance), from section 7.2.7 of ISO/IEC 24724:2006.
|
private static float |
MAX_INDIVIDUAL_VARIANCE |
private static float |
MIN_FINDER_PATTERN_RATIO
Minimum ratio 10:12 (minus 0.5 for variance), from section 7.2.7 of ISO/IEC 24724:2006.
|
private int[] |
oddCounts |
private float[] |
oddRoundingErrors |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRSSReader() |
Modifier and Type | Method and Description |
---|---|
protected static int |
count(int[] array)
Deprecated.
call
MathUtils.sum(int[]) |
protected static void |
decrement(int[] array,
float[] errors) |
protected int[] |
getDataCharacterCounters() |
protected int[] |
getDecodeFinderCounters() |
protected int[] |
getEvenCounts() |
protected float[] |
getEvenRoundingErrors() |
protected int[] |
getOddCounts() |
protected float[] |
getOddRoundingErrors() |
protected static void |
increment(int[] array,
float[] errors) |
protected static boolean |
isFinderPattern(int[] counters) |
protected static int |
parseFinderValue(int[] counters,
int[][] finderPatterns) |
decode, decode, decodeRow, patternMatchVariance, recordPattern, recordPatternInReverse, reset
private static final float MAX_AVG_VARIANCE
private static final float MAX_INDIVIDUAL_VARIANCE
private static final float MIN_FINDER_PATTERN_RATIO
private static final float MAX_FINDER_PATTERN_RATIO
private final int[] decodeFinderCounters
private final int[] dataCharacterCounters
private final float[] oddRoundingErrors
private final float[] evenRoundingErrors
private final int[] oddCounts
private final int[] evenCounts
protected final int[] getDecodeFinderCounters()
protected final int[] getDataCharacterCounters()
protected final float[] getOddRoundingErrors()
protected final float[] getEvenRoundingErrors()
protected final int[] getOddCounts()
protected final int[] getEvenCounts()
protected static int parseFinderValue(int[] counters, int[][] finderPatterns) throws NotFoundException
NotFoundException
@Deprecated protected static int count(int[] array)
MathUtils.sum(int[])
array
- values to sumprotected static void increment(int[] array, float[] errors)
protected static void decrement(int[] array, float[] errors)
protected static boolean isFinderPattern(int[] counters)