Narzędzia użytkownika

Narzędzia witryny


notatki:autofocus

Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Poprzednia rewizja po obu stronachPoprzednia wersja
Nowa wersja
Poprzednia wersja
notatki:autofocus [2025/05/21 20:34] administratornotatki:autofocus [2025/05/21 20:44] (aktualna) administrator
Linia 53: Linia 53:
  
 def main(): def main():
-    # Just open "grayscale.png" in the CWD 
     img = Image.open("greyscale.png").convert("L")     img = Image.open("greyscale.png").convert("L")
     pixels = list(img.getdata())     pixels = list(img.getdata())
     n = len(pixels)     n = len(pixels)
  
-    # If all pixels really are the same, you'll get 0 here. 
     total = 0     total = 0
     for i in range(n):     for i in range(n):
Linia 72: Linia 70:
  
 </code> </code>
 +
 +===== Wyniki dla obrazka wyostrzonego =====
 +
 +{{.:pasted:20250521-204417.png}}
 +
 +<code>
 +Pixels read: 11970
 +Sum of abs diffs over all pairs: 4496510654
 +</code>
 +
 +===== Wyniki dla obrazka niewyostrzonego =====
 +
 +{{.:pasted:20250521-204252.png}}
 +
 +<code>
 +Pixels read: 11970
 +Sum of abs diffs over all pairs: 3223391491
 +</code>
 +
 +
 +
 +
 +
  
  
notatki/autofocus.1747852475.txt.gz · ostatnio zmienione: przez administrator