cosmetic changes

This commit is contained in:
rolux 2013-07-25 09:29:24 +02:00
parent ba6ee2e62e
commit b7f98ffecd

View file

@ -55,9 +55,7 @@ def getImageHash(image_file, mode):
# 4 4 5 5 6 6 7 7 # 4 4 5 5 6 6 7 7
# 4 4 5 5 6 6 7 7 # 4 4 5 5 6 6 7 7
image_data = image.getdata() image_data = image.getdata()
zone_values = [] zone_values = 8 * [[]]
for zone_index in range(8):
zone_values.append([])
for pixel_index, pixel_value in enumerate(image_data): for pixel_index, pixel_value in enumerate(image_data):
zone_values[ZONE_INDEX[pixel_index]].append(pixel_value) zone_values[ZONE_INDEX[pixel_index]].append(pixel_value)
for zone_index, pixel_values in enumerate(zone_values): for zone_index, pixel_values in enumerate(zone_values):