Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AP-CHMIELEWSKI-Louis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Louis Chmielewski
AP-CHMIELEWSKI-Louis
Commits
78f4c6f7
Commit
78f4c6f7
authored
1 year ago
by
Louis Chmielewski
Browse files
Options
Downloads
Patches
Plain Diff
début sont_4_blocs_uniformes_proches class bloc
parent
1bd643a8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
Projet/.DS_Store
+0
-0
0 additions, 0 deletions
Projet/.DS_Store
Projet/src/bloc.py
+16
-2
16 additions, 2 deletions
Projet/src/bloc.py
with
16 additions
and
2 deletions
.DS_Store
+
0
−
0
View file @
78f4c6f7
No preview for this file type
This diff is collapsed.
Click to expand it.
Projet/.DS_Store
+
0
−
0
View file @
78f4c6f7
No preview for this file type
This diff is collapsed.
Click to expand it.
Projet/src/bloc.py
+
16
−
2
View file @
78f4c6f7
...
...
@@ -36,7 +36,7 @@ class Bloc:
"""
return
self
.
image
==
other
.
image
def
est_bloc_uniforme
():
def
est_bloc_uniforme
()
->
bool
:
"""
Renvoie True si le bloc est un bloc uniforme
Précondition : aucune
...
...
@@ -47,7 +47,7 @@ class Bloc:
return
pixel_hl
==
pixel_lr
def
est_bloc_non_uniforme
():
def
est_bloc_non_uniforme
()
->
bool
:
"""
Renvoie True si le bloc n
'
est pas uniforme, c
'
est à dire
si il peut être divisé en 4 blocs
...
...
@@ -58,6 +58,20 @@ class Bloc:
"""
return
not
(
est_bloc_uniforme
())
def
sont_4_blocs_uniformes_proches
(
bloc1
:
Bloc
,
bloc2
:
Bloc
,
bloc3
:
Bloc
,
bloc4
:
Bloc
)
->
bool
:
"""
Renvoie True si les 4 blocs uniformes sont proches
Précondition : aucune
Exemple(s) :
$$$
"""
parametres
=
[
bloc1
,
bloc2
,
bloc3
,
bloc4
]
for
i
in
parametres
(
1
,
len
(
parametres
)
-
1
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment