Skip to content
Snippets Groups Projects
Commit f9ae686b authored by Kinadinova Dariya's avatar Kinadinova Dariya
Browse files

Image_Recursive

parent 0aeb5676
Branches
No related tags found
No related merge requests found
......@@ -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.
......@@ -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) :
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment