diff --git a/projet/ReadMe.md b/projet/ReadMe.md index 8a7ffd592a55df5d2222854e0d253ce3a78f5919..f1e4fc1604b0a1d6f63ca076f9dcc0344cd2771b 100644 --- a/projet/ReadMe.md +++ b/projet/ReadMe.md @@ -12,4 +12,4 @@ - Work on Block.py and Decouper_Image.py #### **27/03/24 :** -- I remade functions decouper, added functions list_col and is_col_close. Made functions average_color, divide_blocks to class Block using the functions previously made. +- I remade functions decouper, added functions list_col and is_col_close. Made functions average_color, divide_blocks to class Block using the functions previously made. Work on Image_Recursive. diff --git a/projet/codes/Color.py b/projet/codes/Color.py index ea1d5ccd115a52127a6b4ec9a107b18b664fff3b..59edf8928aaa8bb02a8473009897987daeb88dc9 100644 --- a/projet/codes/Color.py +++ b/projet/codes/Color.py @@ -29,7 +29,7 @@ def avg_col(l:list) -> tuple(): return (avg1, avg2, avg3) def list_col(im: Image, left_top: tuple(), right_bottom: tuple()) -> list[int]: - """à_remplacer_par_ce_que_fait_la_fonction + """return a list of colors of each pixels in the given space Précondition : Exemple(s) : diff --git a/projet/codes/Image_Recursive.py b/projet/codes/Image_Recursive.py index ffa978e2f81d8b9173ce391a9024ea13c076ce12..a64489e4e49f8def7fc97453424e4c70c8c2665c 100644 --- a/projet/codes/Image_Recursive.py +++ b/projet/codes/Image_Recursive.py @@ -26,7 +26,10 @@ def Image_Recursive(image: Image, order: int): avg_c = average_color([b1.color for b1 in allb]) new_b = Block(Image.new(image.size, avg_c)) return new_b - else: block_im = Image.new(image.size) + else: + # create a block with index or a loop + block_im = Image.new(image.size) + pass