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

Image_Recursive

parent dac2d370
No related branches found
No related tags found
No related merge requests found
......@@ -10,3 +10,6 @@
#### **20/03/24 :**
- 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.
......@@ -5,7 +5,8 @@
"""
from PIL import Image, ImageDraw
from color import *
from Color import *
from Decouper_Image import *
class Block:
def __init__(self, image):
......
# KINADINOVA Dariya
# Images récursives
"""
:author: dariya kinadinova
:date: 03/2024
"""
from PIL import Image, ImageDraw
......
"""
:author: dariya kinadinova
:date: 03/2024
"""
from PIL import Image, ImageDraw
......
"""
:author: dariya kinadinova
:date: 03/2024
"""
import sys
from PIL import Image, ImageDraw
from Color import *
from Decouper_Image import *
from Block import *
def Image_Recursive(image: Image, order: int):
"""à_remplacer_par_ce_que_fait_la_fonction
Précondition :
Exemple(s) :
$$$
"""
im = image.convert('RGB')
b = Block(im)
if order != 0:
allblocks = b.divide_blocks()
allb = [Image_Recursive(b1.image, order -1) for b1 in allblocks]
if all(b1.is_uniform)
def main():
"""à_remplacer_par_ce_que_fait_la_fonction
Précondition :
Exemple(s) :
$$$
"""
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment