Optimize PhotoImage array accesses by preferring integer addition over multiplication when calculating array indices. Furthermore cache the "nibbled" image edges rather than adding or subtracting nibble values when determining if a pixel is in the image when reading data.
Optimize
PhotoImage
array accesses by preferring integer addition over multiplication when calculating array indices. Furthermore cache the "nibbled" image edges rather than adding or subtracting nibble values when determining if a pixel is in the image when reading data.