\documentclass[french]{spimufcphdthesis}
\usepackage[utf8]{inputenc}
             
\usepackage{graphicx}
\usepackage{color, xcolor}
\usepackage[ruled,lined,linesnumbered]{algorithm2e}
\usepackage{multirow}
\usepackage{placeins}
  
\usepackage{amsmath}
\usepackage{booktabs}  
\usepackage{textcomp}
\usepackage{listings}

\let\OLDlstinputlisting\lstinputlisting
\renewcommand{\lstinputlisting}[2][]{\FloatBarrier\OLDlstinputlisting[#1]{#2}\FloatBarrier} 


\lstset{morekeywords={HALF4,HALF3,float2,float3,float4,half,half2,half3,half4,tex2D,dim3,endif,threadIdx,blockIdx,blockDim,gridDim,Dim3,__host__,__global__,__shared__,float}}
\lstset{
  language=C,
  columns=fixed,
  basicstyle=\footnotesize\ttfamily,
  numbers=left,
  firstnumber=1,
  numberstyle=\tiny,
  stepnumber=5,             
  numbersep=5pt,              
  tabsize=3,                  
  extendedchars=true,         
  breaklines=true,       
  keywordstyle=\textbf,
  frame=single,         
  % keywordstyle=[1]\textbf,   
  %identifierstyle=\textbf,
  commentstyle=\color{white}\textbf,
  stringstyle=\color{white}\ttfamily,
  % xleftmargin=17pt,
  % framexleftmargin=17pt,
  % framexrightmargin=5pt,
  % framexbottommargin=4pt,
  backgroundcolor=\color{lightgray},
  basicstyle=\scriptsize,
  texcl=true
  }

%%--------------------
%% Set the title, subtitle, defense date, and
%% the registration number of the PhD thesis.
%% The optional parameter is the subtitle of the PhD thesis.
%% The first mandatory parameter is the title of the PhD thesis.
%% The second mandatory parameter is the date of the PhD defense.
%% The third mandatory parameter is the reference number given by
%% the University Library after the PhD defense.
\declarethesis[]{Algorithmes rapides pour le traitement des images bruitées sur GPU}{17 novembre 2013}{XXX}
      
%%--------------------  
%% Set the author of the PhD thesis
\addauthor[gilles.perrot@univ-fcomte.fr]{Gilles}{Perrot}
    
%%--------------------
%% Add a member of the jury
%% \addjury{Firstname}{Lastname}{Role in the jury}{Position}
\addjury{Incroyable}{Hulk}{Rapporteur}{Professeur à l'Université de Gotham City \\ Commentaire secondaire}
\addjury{Super}{Man}{Examinateur}{Professeur à l'Université de Gotham City}
\addjury{Bat}{Man}{Directeur de thèse}{Professeur à l'Université de Gotham City}
   
%%--------------------
%% Set the laboratory where the thesis was made
\addlaboratory{Institut FEMTO-ST, département DISC}
  
%%-------------------- 
%% Set the English abstract
\thesisabstract[english]{This is the abstract in English}
       
%%--------------------   
%% Set the English keywords. They only appear if
%% there is an English abstract
\thesiskeywords[english]{GPU, Filtering, Image, Segmentation}
    
%% --------------------
%% Set the French abstract
\thesisabstract[french]{Ceci est le résumé en français}
 
%%--------------------
%% Set the French keywords. They only appear if
%% there is an French abstract
\thesiskeywords[french]{GPU, Filtrage, Image, Segmentation}
 
%%--------------------
%% Change the speciality of the PhD thesis
\Set{speciality}{Informatique}
 
%%--------------------
%% Change the institution
\Set{universityname}{Universit\'e de Franche-Comt\'e}
 
%%--------------------
%% Change the header and the foot of the pages
%% Left header
%\lhead{}
%% Center header
%\chead{}
%% Right header
%\rhead{}
%% Left footer
%\lfoot{}
%% Center footer
%\cfoot{} 
%% Right footer
%\rfoot{}


%\declareupmtheorem{rq}{Remarque}{Liste des remarques}

\newcommand{\kl}{\includegraphics[scale=0.7]{kernLeft.png}~}
\newcommand{\kr}{\includegraphics[scale=0.7]{kernRight.png}}
   
\begin{document}
    
\tableofcontents
                                                                         
%-------------------- 
% The content of the PhD thesis
% objectifs, cadre  
% annonce du plan  
\chapter{Introduction}          
\input{Chapters/chapter1/chapter1.tex}
\chapter{Les processeurs graphiques (GPU) NVidia\textregistered}\label{ch-GPU}
\input{Chapters/chapter1b/chapter1b.tex}
\chapter{Le traitement des images bruitées} 
\input{Chapters/chapter2/chapter2.tex}
% généraliéts
%classes d'algo, outils ( histo, PDF, gauss, speckle, etc..)
%\section{L'état de l'art des implémentations GPU}
% segmentation
% filtrage : réduction de bruit, convolutions 
% tracking         
% pattern recognition 
\chapter{La segmentation par snake polygonal orienté régions}
\input{Chapters/chapter3/chapter3.tex}     
 
\part*{Le filtrage des images sur GPU}
\chapter{Réduction de bruit par recherche des lignes de niveaux}
\input{Chapters/chapter4/chapter4.tex}

\chapter{Le filtre médian sur GPU} 
\input{Chapters/chapter5/chapter5.tex}

\chapter{Les filtres de convolution sur GPU}
\input{Chapters/chapter6/chapter6.tex} 
% présentation, rôle   
% détails : convo NON SEP, convo SEP, discussion Shared mem
% résultats, conclusion  
% intégrer logiciels dans sections
\chapter{Conclusion générale}
 \input{Chapters/chapter7/chapter7.tex}
   
%--------------------
% Bibliography, indexes...
\bibliographystyle{plain}
\bibliography{biblio}
\listoffigures
\listoftables
  
\appendix
 
\end{document}