thresholdBlock(luminances, xoffset, yoffset, average, width, matrix);
thresholdBlock(luminances, xoffset, yoffset, average, width, matrix);
thresholdBlock(luminances, xoffset, yoffset, average, width, matrix);
thresholdBlock(luminances, xoffset, yoffset, average, width, matrix);