Feat(SNT): ajoute le bilan sur les couleurs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bertrand Benjamin 2023-01-09 09:15:20 +01:00
parent 717642a1b7
commit b0e31e54eb
9 changed files with 584 additions and 1 deletions

View File

@ -0,0 +1,56 @@
\documentclass[a4paper,10pt]{article}
\usepackage{myXsim}
\author{Benjamin Bertrand}
\title{Image Numérique - Cours}
\date{Décembre 2022}
\pagestyle{empty}
\begin{document}
\maketitle
\subsection*{Les couleurs - RGB}
On a vu que les couleurs pouvait être décrites numériquement par 3 nombres, c'est le modèle RGB (red, green, blue).
Avec le matériel récent, le plus commun est d'attribuer 1octet (ou encore 8bits) à chaque couleurs. Les couleurs sont donc décrites par 3 octets que l'on représente pas 3 nombres entre 0 et 255.
Voici quelques exemples de couleurs:
\begin{center}
\includegraphics[scale=0.2]{./fig/roue_couleurs_255_corr}
\includegraphics[scale=0.2]{./fig/roue_couleurs_128_corr}
\end{center}
\textbf{Nombre de couleurs possibles:} Il y a 256 niveaux de rouge, 256 niveaux de vert et 256 niveau de bleu. On a donc en tout
\[
256\times 256\times 256 = \np{16777216}
\]
Ce que l'on nomme plus communément 16 millions de couleurs.
\paragraph{Remarque:} Il existe d'autres modèles pour décrire les couleurs qui fonctionnent sur le même principe mais qui ne sont pas basé sur les couleurs primaires. On peut citer TSB ou TSV.
\section{Les métadonnées}
Un fichier contenant une image ne continent pas uniquement la couleur de chaque pixel. Il contient aussi des données qui permettent de décrire le contexte dans lequel l'image a été prise. Ce sont les \textbf{métadonnées}.
\begin{minipage}{0.6\textwidth}
\includegraphics[scale=0.3]{./fig/metadonnees}
\end{minipage}
\begin{minipage}{0.4\textwidth}
On y retrouve par exemple:
\begin{itemize}
\item Les dimensions
\item La date de prise de vue
\item La marque et le modèle de l'appareil photo
\item Les coordonnées gps si le GPS est activé.
\end{itemize}
\end{minipage}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View File

@ -0,0 +1,260 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="358.22366mm"
height="321.53308mm"
viewBox="0 0 358.22366 321.53308"
version="1.1"
id="svg8"
inkscape:export-filename="/home/lafrite/image.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="roue_couleurs_128.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.37720497"
inkscape:cx="297.12507"
inkscape:cy="629.0195"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1366"
inkscape:window-height="743"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(75.424986,33.836507)">
<rect
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="rect920"
width="357.95908"
height="321.26849"
x="-75.292694"
y="-33.704216" />
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
id="path922"
cx="89.373886"
cy="131.09854"
r="107.70523" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="89.337715"
y="56.459465"
id="text835"><tspan
sodipodi:role="line"
id="tspan833"
x="89.337715"
y="56.459465"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="89.337715"
y="69.688591"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan884">128 0 0</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837"
cx="90.112862"
cy="28.085659"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="177.97906"
y="203.38167"
id="text835-6"><tspan
sodipodi:role="line"
id="tspan833-7"
x="177.97906"
y="203.38167"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="177.97906"
y="216.61079"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan886">0 0 128</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-5"
cx="178.6767"
cy="175.00786"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="-8.3651991"
y="201.68022"
id="text835-62"><tspan
sodipodi:role="line"
id="tspan833-9"
x="-8.3652"
y="201.68022"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="-8.3652"
y="214.90935"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888">0 128 0</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1"
cx="-7.6675692"
cy="173.30641"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="-1.5483692"
y="103.65632"
id="text835-62-7"><tspan
sodipodi:role="line"
id="tspan833-9-0"
x="-1.5483698"
y="103.65632"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="-1.5483705"
y="116.88544"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9">128 128 0</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1-3"
cx="-0.77322519"
cy="75.282509"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="188.27951"
y="102.12823"
id="text835-62-7-0"><tspan
sodipodi:role="line"
id="tspan833-9-0-6"
x="188.27951"
y="102.12823"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="188.27951"
y="115.35735"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9-2">128 0 128</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1-3-6"
cx="189.05466"
cy="73.754417"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="87.89505"
y="263.2316"
id="text835-62-7-0-8"><tspan
sodipodi:role="line"
id="tspan833-9-0-6-7"
x="87.89505"
y="263.2316"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="87.89505"
y="276.46072"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9-2-9">0 128 128</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1-3-6-2"
cx="88.592682"
cy="234.85779"
r="17.436611" />
<g
id="g1033-0"
transform="translate(90.997187,51.060883)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="-1.5483692"
y="103.65632"
id="text835-62-7-2"><tspan
sodipodi:role="line"
id="tspan833-9-0-3"
x="-1.5483698"
y="103.65632"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="-1.5483688"
y="116.88544"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9-7">128 128 128</tspan></text>
<circle
style="fill:none;stroke:#000000;stroke-width:0.264583"
id="path837-1-3-5"
cx="-0.77322519"
cy="75.282509"
r="17.436611" />
</g>
<g
id="g908-9"
transform="translate(97.447903,-55.482169)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="94.368614"
y="79.855774"
id="text835-2"><tspan
sodipodi:role="line"
id="tspan833-2"
x="94.368614"
y="79.855774"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="94.368614"
y="93.0849"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan884-8"> 0 0 0</tspan></text>
<circle
style="fill:none;stroke:#000000;stroke-width:0.264583"
id="path837-9"
cx="95.143761"
cy="51.481968"
r="17.436611" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

View File

@ -0,0 +1,260 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="358.22366mm"
height="321.53308mm"
viewBox="0 0 358.22366 321.53308"
version="1.1"
id="svg8"
inkscape:export-filename="/home/lafrite/Cours/2020-2021/Contenus/SNT/02_Image_Numerique/fig/roue_couleurs_255.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="roue_couleurs_255.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.37720497"
inkscape:cx="388.58728"
inkscape:cy="629.0195"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1366"
inkscape:window-height="743"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(75.424986,33.836507)">
<rect
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="rect920"
width="357.95908"
height="321.26849"
x="-75.292694"
y="-33.704216" />
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
id="path922"
cx="89.373886"
cy="131.09854"
r="107.70523" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="89.337715"
y="56.459465"
id="text835"><tspan
sodipodi:role="line"
id="tspan833"
x="89.337715"
y="56.459465"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="89.337715"
y="69.688591"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan884">255 0 0</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837"
cx="90.112862"
cy="28.085659"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="177.97906"
y="203.38167"
id="text835-6"><tspan
sodipodi:role="line"
id="tspan833-7"
x="177.97906"
y="203.38167"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="177.97906"
y="216.61079"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan886">0 0 255</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-5"
cx="178.6767"
cy="175.00786"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="-8.3651991"
y="201.68022"
id="text835-62"><tspan
sodipodi:role="line"
id="tspan833-9"
x="-8.3652"
y="201.68022"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="-8.3652"
y="214.90935"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888">0 255 0</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1"
cx="-7.6675692"
cy="173.30641"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="-1.5483692"
y="103.65632"
id="text835-62-7"><tspan
sodipodi:role="line"
id="tspan833-9-0"
x="-1.5483698"
y="103.65632"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="-1.5483705"
y="116.88544"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9">255 255 0</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1-3"
cx="-0.77322519"
cy="75.282509"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="188.27951"
y="102.12823"
id="text835-62-7-0"><tspan
sodipodi:role="line"
id="tspan833-9-0-6"
x="188.27951"
y="102.12823"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="188.27951"
y="115.35735"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9-2">255 0 255</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1-3-6"
cx="189.05466"
cy="73.754417"
r="17.436611" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="87.89505"
y="263.2316"
id="text835-62-7-0-8"><tspan
sodipodi:role="line"
id="tspan833-9-0-6-7"
x="87.89505"
y="263.2316"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="87.89505"
y="276.46072"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9-2-9">0 255 255</tspan></text>
<circle
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.264583"
id="path837-1-3-6-2"
cx="88.592682"
cy="234.85779"
r="17.436611" />
<g
id="g1033-0"
transform="translate(90.997187,51.060883)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="-1.5483692"
y="103.65632"
id="text835-62-7-2"><tspan
sodipodi:role="line"
id="tspan833-9-0-3"
x="-1.5483698"
y="103.65632"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="-1.5483688"
y="116.88544"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan888-9-7">255 255 255</tspan></text>
<circle
style="fill:none;stroke:#000000;stroke-width:0.264583"
id="path837-1-3-5"
cx="-0.77322519"
cy="75.282509"
r="17.436611" />
</g>
<g
id="g908-9"
transform="translate(97.447903,-55.482169)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="94.368614"
y="79.855774"
id="text835-2"><tspan
sodipodi:role="line"
id="tspan833-2"
x="94.368614"
y="79.855774"
style="text-align:center;text-anchor:middle;stroke-width:0.264583">............</tspan><tspan
sodipodi:role="line"
x="94.368614"
y="93.0849"
style="text-align:center;text-anchor:middle;stroke-width:0.264583"
id="tspan884-8"> 0 0 0</tspan></text>
<circle
style="fill:none;stroke:#000000;stroke-width:0.264583"
id="path837-9"
cx="95.143761"
cy="51.481968"
r="17.436611" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View File

@ -2,7 +2,7 @@ Photographie numérique
###################### ######################
:date: 2022-11-16 :date: 2022-11-16
:modified: 2022-12-08 :modified: 2023-01-09
:authors: Benjamin Bertrand :authors: Benjamin Bertrand
:tags: Photos numériques :tags: Photos numériques
:category: SNT :category: SNT
@ -77,6 +77,13 @@ Bilan: image NB, niveau de gris
- Recherche des lieux de prise de vu - Recherche des lieux de prise de vu
- Modification des métadonnées d'une image - Modification des métadonnées d'une image
Bilan:
.. image:: ./3B_couleur_metadonnees.pdf
:height: 200px
:alt: Bilan sur les couleurs et les métadonnées
Étape 5: Métiers liés à l'image numérique Étape 5: Métiers liés à l'image numérique
----------------------------------------- -----------------------------------------