Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI -...
-
Upload
valentin-barriere -
Category
Documents
-
view
104 -
download
1
Transcript of Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI -...
![Page 1: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/1.jpg)
Projet Image en C++
Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi
L3 MI - Année 2009 - 2010
![Page 2: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/2.jpg)
Sommaire
Sommaire
Introduction
Diagramme de classes
Présentation de l'interface
Photométrie
Arithmétique
Conversions
2
![Page 3: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/3.jpg)
Introduction
Présentation du projet− Projet de C++ − Plateforme de traitement d’image− Développement d’une interface graphique (Qt)
3
![Page 4: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/4.jpg)
Introduction
Cahier des charges Fonctionnalités du programme :
Charger une image Faire des opérations sur celle-ci et/ou avec une
seconde image Enregistrer l'image créée
4
![Page 5: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/5.jpg)
Diagramme de classes
5
![Page 6: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/6.jpg)
Présentation de l'interface
6
![Page 7: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/7.jpg)
Photométrique
• Les besoins :− Création des différents histogrammes
− Opérations photométrique sur l’image (négatif,…)
7
![Page 8: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/8.jpg)
Photométrique
• Les solutions : (class Histo)− Définitions des constructeurs
− Définition des « getters » et « setters »
− Remplissage des histogrammes : setHisto() et
setHistoCumul()
8
![Page 9: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/9.jpg)
9
![Page 10: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/10.jpg)
Photométrique
• Les solutions : (class Image)− Définitions des différentes fonctions (setLuminusite(),
negatif(),…)
10
![Page 11: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/11.jpg)
Photométrique
11
![Page 12: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/12.jpg)
Arithmétique
• Les besoins :− Chargement d’une seconde image
− Opérations standards (+,-,*,/)
− Opérations binaires (et, ou)
− Maximum et Minimum
12
![Page 13: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/13.jpg)
Arithmétique
• Les solutions : (classe Image)− Surcharges des différents opérateurs (+,-,*,/,&,|)
− Définition de deux fonctions : maximum() et minimum()
− QComboBox pour les traitements
− Traitements basés sur l’image principale
13
![Page 14: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/14.jpg)
14
![Page 15: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/15.jpg)
Arithmétique
15
![Page 16: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/16.jpg)
Géométrique
• Les besoins :− Extraction d’une sous-image
− Redimensionnement
− Retournement
− Rotation
16
![Page 17: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/17.jpg)
Géométrique
• Les solutions : (Class Image)− Définition de la fonction : extraction (int x1,int y1,int x2,int y2)
− Utilisation des fonctions rotate et translate de QMatrix
− Surcharge de la fonction redimension
− Définition de plusieurs fonctions pour les retournements
17
![Page 18: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/18.jpg)
Géométrique
• Surcharges de dimension : (Class Image)− redimension(int max) //ratio ok
− redimension(int l,bool largeur) //ratio ok
− redimension(int l,int h) //ratio non
// Utilisation des fonctions scaled de QImage
18
![Page 19: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/19.jpg)
Géométrique
19
![Page 20: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/20.jpg)
Conversion
• Les besoins :− Conversion en niveau de gris
− Conversion en noir et blanc
− Conversion en couleurs RGB
20
![Page 21: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/21.jpg)
Conversion
• Les solutions : (Class Image)− conv_rgb_grey()
− conv_rgb_n_b(int lim) //lim définit le seuil de
conversion
21
![Page 22: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/22.jpg)
Conversion
22
![Page 23: Projet Image en C++ Composition du trinôme : DUPONT Thomas MEHAULT Maxime NICOLAS Rémi L3 MI - Année 2009 - 2010.](https://reader035.fdocuments.net/reader035/viewer/2022070309/551d9db5497959293b8d99ff/html5/thumbnails/23.jpg)
Conclusion
• Gestion des images jpeg et ppm
• Utilisation de Qt (QtCreator) pour l’interface
• Utilisation au maximum des classes QT
23