Lines Matching refs:region
984 Theoretically, the region-finder should work for any number of distinct
993 int width, height, nlines = 0, region = -1, i, transition = 1, badcnt;
1016 /* column averages per region */
1044 /* End of region. Lines are different or end of data. */
1048 region, nlines - reglines[region], nlines - 1);
1052 /* Lines are similar, so still in region. */
1056 new region. */
1057 region++;
1058 if (region >= NREGIONS)
1062 reglines[region] = 0;
1064 /* Add oldline to the current region's average */
1066 avg[i + region * width] += oldline[i];
1067 reglines[region]++;
1074 region++; /* now call it number of regions instead of index */
1075 DBG (11, "read %d lines as %d regions\n", nlines, region);
1078 if (region != NREGIONS)
1081 "Found %d regions instead of %d.\n", region, NREGIONS);
1082 for (i = 0; i < region; i++)
1094 /* black region */
1096 /* white region */