Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
abdessamad-killian
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
isn-malraux-mini-projet
abdessamad-killian
Commits
e906902b
Commit
e906902b
authored
Jan 11, 2018
by
Abdessamad Akabli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dernière update.
- Modification rotation couleurs
parent
75a23c88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Version_Beta.py
Version_Beta.py
+9
-9
No files found.
Version_Beta.py
View file @
e906902b
...
...
@@ -153,16 +153,16 @@ def rotation_couleurs():
image_bgr
.
putpixel
((
x
,
y
),(
rouge
,
vert
,
bleu
))
image_bgr
.
show
()
image_modifie
=
image_bgr
.
copy
()
def
grb
():
def
brg
():
global
image_modifie
image_
grb
=
image_modele
.
copy
()
image_
brg
=
image_modele
.
copy
()
for
x
in
range
(
largeur
):
for
y
in
range
(
hauteur
):
(
rouge
,
vert
,
bleu
)
=
image_
grb
.
getpixel
((
x
,
y
))
(
rouge
,
vert
,
bleu
)
=
(
vert
,
rouge
,
bleu
)
image_
grb
.
putpixel
((
x
,
y
),(
rouge
,
vert
,
bleu
))
image_
grb
.
show
()
image_modifie
=
image_
grb
.
copy
()
(
rouge
,
vert
,
bleu
)
=
image_
brg
.
getpixel
((
x
,
y
))
(
rouge
,
vert
,
bleu
)
=
(
bleu
,
rouge
,
vert
)
image_
brg
.
putpixel
((
x
,
y
),(
rouge
,
vert
,
bleu
))
image_
brg
.
show
()
image_modifie
=
image_
brg
.
copy
()
def
gbr
():
global
image_modifie
image_gbr
=
image_modele
.
copy
()
...
...
@@ -177,9 +177,9 @@ def rotation_couleurs():
root
.
title
(
"Traitement de l'image"
)
tk
.
Label
(
root
,
text
=
"Quel mode de rotation colorimétrique voulez-vous ?"
)
.
pack
()
tk
.
Button
(
root
,
text
=
" - RBG - Rotation RGB->R
BG
"
,
command
=
rgb
)
.
pack
()
tk
.
Button
(
root
,
text
=
" - RBG - Rotation RGB->R
GB
"
,
command
=
rgb
)
.
pack
()
tk
.
Button
(
root
,
text
=
" - BGR - Rotation RGB->BGR"
,
command
=
bgr
)
.
pack
()
tk
.
Button
(
root
,
text
=
" - GRB - Rotation RGB->
GRB"
,
command
=
grb
)
.
pack
()
tk
.
Button
(
root
,
text
=
" - GRB - Rotation RGB->
BRG"
,
command
=
brg
)
.
pack
()
tk
.
Button
(
root
,
text
=
" - GBR - Rotation RGB->GBR"
,
command
=
gbr
)
.
pack
()
tk
.
Button
(
root
,
text
=
"Retour"
,
fg
=
"red"
,
command
=
root
.
destroy
)
.
pack
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment