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

class block: divide_blocks

parent c9751539
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,20 @@ class Block:
"""
colors = liste_col(self.image, (0, 0), (self.width-1, self.height-1))
return avg_col(colors)
def divide_blocks(self):
"""à_remplacer_par_ce_que_fait_la_fonction
Précondition :
Exemple(s) :
$$$
"""
allblocks = []
d = decouper(self.image)
for blocks in d:
allblocks.append(Block(blocks))
return allblocks
def is_uniform(self, coordinates: tuple()):
"""à_remplacer_par_ce_que_fait_la_fonction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment