🛀 cleanup

This commit is contained in:
codemasher
2021-06-05 01:16:21 +02:00
parent d60a4e0f55
commit f4401a4b2b
10 changed files with 72 additions and 42 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ final class Binarizer{
// This class uses 5x5 blocks to compute local luminance, where each block is 8x8 pixels.
// So this is the smallest dimension in each axis we can accept.
private const BLOCK_SIZE_POWER = 3;
private const BLOCK_SIZE = 8; // ...0100...00
private const BLOCK_SIZE_MASK = 7; // ...0011...11
private const BLOCK_SIZE = 8; // ...0100...00
private const BLOCK_SIZE_MASK = 7; // ...0011...11
private const MINIMUM_DIMENSION = 40;
private const MIN_DYNAMIC_RANGE = 24;