diff --git a/.DS_Store b/.DS_Store index 444e653b3ab3039cc2dfa930f534d7ffe9a1d546..d619dc514f7fbaf47beba35e00db39750663a3e3 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Projet/.DS_Store b/Projet/.DS_Store index 7c4f7b3300b6f8babdf813216b14652885ea2f8d..273da1de5b714b196a0af5fce08fd4b40994a30c 100644 Binary files a/Projet/.DS_Store and b/Projet/.DS_Store differ diff --git a/Projet/src/bloc.py b/Projet/src/bloc.py index 75ffa56387c29b1c4356af5e160e03fce03a9da7..79b1175528bc5386e04030768fcd91462474d0b7 100755 --- a/Projet/src/bloc.py +++ b/Projet/src/bloc.py @@ -77,7 +77,23 @@ class Bloc: return res - + def en_4_blocs(bloc:Bloc)->bloc: + """ + Divise un bloc en 4 blocs + Précondition : aucune + Exemple(s) : + $$$ + + """ + return \n + bloc1 = pixel_hl = image.getpixel((0, 0)) and \n + pixel_lr = image.getpixel((largeur/2, hauteur/2)) \n + bloc2 = pixel_hl = image.getpixel((largeur/2, 0)) and \n + pixel_lr = image.getpixel((largeur, hauteur/2)) \n + bloc3 = pixel_hl = image.getpixel((0, hauteur/2)) and \n + pixel_lr = image.getpixel((largeur/2, hauteur)) \n + bloc4 = pixel_hl = image.getpixel((largeur/2, hauteur/2)) and \n + pixel_lr = image.getpixel((largeur, hauteur))