rowThreshold static method

int rowThreshold(
  1. Uint8List row,
  2. int length
)

Threshold for a single row of samples, used by the 1D readers.

Implementation

static int rowThreshold(Uint8List row, int length) {
  final Int32List buckets = Int32List(32);
  for (int x = 0; x < length; x++) {
    buckets[row[x] >> 3]++;
  }
  return _estimate(buckets) << 3;
}