]> AND Private Git Repository - book_gpu.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif
authorcouturie <couturie@extinction.(none)>
Mon, 17 Dec 2012 20:44:08 +0000 (21:44 +0100)
committercouturie <couturie@extinction.(none)>
Mon, 17 Dec 2012 20:44:08 +0000 (21:44 +0100)
BookGPU/Chapters/chapter3/biblio3.bib
BookGPU/Chapters/chapter3/ch3.tex
BookGPU/Chapters/chapter3/img/median3_overlap.png
BookGPU/Chapters/chapter3/img/median5_overlap.png
BookGPU/Chapters/chapter3/img/median_1.svg

index 6b91912f06bda280c12fc608103a01ec0c922250..e57324d09afa2e19247d586c0f814ac4a777ea5a 100644 (file)
@@ -448,3 +448,15 @@ pages={1549 -1552},
 keywords={adaptive rate compressive sensing;background subtraction;classical CS theory;cross validation;current measurement rate;sensor measurements;signal reconstruction;signal sparsity;time-varying signal;visual surveillance applications;compressed sensing;image reconstruction;video surveillance;}, 
 doi={10.1109/ICASSP.2012.6288187}, 
 ISSN={1520-6149},}
 keywords={adaptive rate compressive sensing;background subtraction;classical CS theory;cross validation;current measurement rate;sensor measurements;signal reconstruction;signal sparsity;time-varying signal;visual surveillance applications;compressed sensing;image reconstruction;video surveillance;}, 
 doi={10.1109/ICASSP.2012.6288187}, 
 ISSN={1520-6149},}
+
+@ARTICLE{4287006, 
+author={Perreault, S. and Hebert, P.}, 
+journal={Image Processing, IEEE Transactions on}, title={Median Filtering in Constant Time}, 
+year={2007}, 
+month={sept. }, 
+volume={16}, 
+number={9}, 
+pages={2389 -2394}, 
+keywords={algorithmic runtime complexity;filter kernel radius;image processing;median filtering algorithm;computational complexity;filtering theory;image processing;median filters;Algorithms;Computer Graphics;Image Enhancement;Image Interpretation, Computer-Assisted;Numerical Analysis, Computer-Assisted;Reproducibility of Results;Sensitivity and Specificity;Time Factors;User-Computer Interface;}, 
+doi={10.1109/TIP.2007.902329}, 
+ISSN={1057-7149},}
\ No newline at end of file
index 2afb337b65a60da673a9816f46fcc4ae939755e5..8b7b55e5d38a26cfa2abffe73741d266d791d92e 100755 (executable)
@@ -1,4 +1,4 @@
-\chapterauthor{Zulu pero}{Zulumachine Institute}
+\chapterauthor{Gilles Perrot}{FEMTO-ST Institute}
 %\graphicspath{{img/}}
 
 
 %\graphicspath{{img/}}
 
 
@@ -112,6 +112,21 @@ Obviously, our code originally accepts various image dimensions and can process
 However, so as to propose concise and more readable code, we will assume the following limitations:
 8 or 16~bit-coded gray-level input images whose dimensions $H\times W$ are multiples of 512 pixels. 
 
 However, so as to propose concise and more readable code, we will assume the following limitations:
 8 or 16~bit-coded gray-level input images whose dimensions $H\times W$ are multiples of 512 pixels. 
 
+\begin{algorithm}
+ \SetNlSty{textbf}{}{:}
+ allocate and populate CPU memory \textbf{h\_in}\;\\
+ allocate CPU pinned-memory \textbf{h\_out}\;\\
+ allocate GPU global memory \textbf{d\_out}\;\\
+ declare GPU texture reference \textbf{tex\_img\_in}\;\\
+ allocate GPU array in global memory \textbf{array\_img\_in}\;\\
+ bind GPU array \textbf{array\_img\_in} to texture \textbf{tex\_img\_in}\;\\
+ copy data from \textbf{h\_in} to \textbf{array\_img\_in}\label{algo:memcopy:H2D}\; \\
+ kernel\kl gridDim,blockDim\kr()\tcc*[f]{outputs to d\_out}\label{algo:memcopy:kernel}\;\\
+ copy data from \textbf{d\_out} to \textbf{h\_out} \label{algo:memcopy:D2H}\;\\
+\caption{Global memory management on CPU and GPU sides.}
+\label{algo:memcopy}
+ \end{algorithm}
+
 \section{Data transfers, memory management.}
 This section deals with the following issues: 
 \begin{enumerate}
 \section{Data transfers, memory management.}
 This section deals with the following issues: 
 \begin{enumerate}
@@ -132,21 +147,6 @@ Listing \ref{lst:fkern1} gives a minimal kernel skeleton that will serve as the
 The instruction in line 8 combines writing the output gray-level value into global memory and fetching the input gray-level value from 2-D texture memory.
 The Makefile given in Listing \ref{lst:mkfile} shows how to adapt examples given in SDK.
 
 The instruction in line 8 combines writing the output gray-level value into global memory and fetching the input gray-level value from 2-D texture memory.
 The Makefile given in Listing \ref{lst:mkfile} shows how to adapt examples given in SDK.
 
-\begin{algorithm}
- \SetNlSty{textbf}{}{:}
- allocate and populate CPU memory \textbf{h\_in}\;
- allocate CPU pinned-memory \textbf{h\_out}\;
- allocate GPU global memory \textbf{d\_out}\;
- declare GPU texture reference \textbf{tex\_img\_in}\;
- allocate GPU array in global memory \textbf{array\_img\_in}\;
- bind GPU array \textbf{array\_img\_in} to texture \textbf{tex\_img\_in}\;
- copy data from \textbf{h\_in} to \textbf{array\_img\_in}\label{algo:memcopy:H2D}\; 
- kernel\kl gridDim,blockDim\kr()\tcc*[f]{outputs to d\_out}\label{algo:memcopy:kernel}\;
- copy data from \textbf{d\_out} to \textbf{h\_out} \label{algo:memcopy:D2H}\;
-\caption{Global memory management on CPU and GPU sides.}
-\label{algo:memcopy}
-\end{algorithm}
-
 \lstinputlisting[label={lst:main1},caption=Generic main.cu file used to launch CUDA kernels]{Chapters/chapter3/code/mainSkel.cu}
 
 \lstinputlisting[label={lst:fkern1},caption=fast\_kernels.cu file featuring one kernel skeleton]{Chapters/chapter3/code/kernSkel.cu}
 \lstinputlisting[label={lst:main1},caption=Generic main.cu file used to launch CUDA kernels]{Chapters/chapter3/code/mainSkel.cu}
 
 \lstinputlisting[label={lst:fkern1},caption=fast\_kernels.cu file featuring one kernel skeleton]{Chapters/chapter3/code/kernSkel.cu}
@@ -313,36 +313,57 @@ The diagram of Figure \ref{fig:compMedians1} summarizes these first results. Onl
 \end{figure}
 
 \subsection{Further optimization}
 \end{figure}
 
 \subsection{Further optimization}
-Running the above register-only 3$\times$3 median filter through the NVidia CUDA profiler teaches us that the memory throughput achieved by the kernel remains quite low. To improve this, two methods can be used: one is to increase the number of concurrent threads by reducing the number of registers used, the other to have each thread process more data which can be achieved by outputting the gray-level value of two pixels or more.
+Running the above register-only 3$\times$3 median filter through the NVidia CUDA profiler teaches us that the memory throughput achieved by the kernel remains quite low. To improve this, two methods can be used: 
+\begin{itemize}
+\item increasing the number of concurrent threads, which can be achieved by reducing the number of registers used by each thread.
+\item having each thread process more data which can be achieved at thread level by processing and outputting the gray-level value of two pixels or more.
+\end{itemize}
+
 \subsubsection{Reducing register count}
 Our current kernel (\texttt{kernelMedian3RegTri9}) uses one register per gray-level value, which amounts to 9 registers for the entire 3$\times$3 window. 
 \subsubsection{Reducing register count}
 Our current kernel (\texttt{kernelMedian3RegTri9}) uses one register per gray-level value, which amounts to 9 registers for the entire 3$\times$3 window. 
-This count can be reduced by use of an iterative sorting process called \textit{forgetful selection}, where both \textit{extrema} are eliminated at each sorting stage, until only 3 elements remain. The question is to find out the minimal register count $k_n$ that allows the selection of the median amoung $n^2$ values. The answer can be evaluated  considering that, when eliminating the maximum and the minimum values, one has to make sure not to eliminate the global median value, e.g. $k_n=\lceil n^2/2\rceil+1$.
-%To ensure this, the number of values that are not part of the process must remain lower than the number of values that would have had an index higher (or lower) than the middle one in the fully sorted $n^2$ value vector. 
+This count can be reduced by use of an iterative sorting process called \textit{forgetful selection}, where both \textit{extrema} are eliminated at each sorting stage, until only 3 elements remain. The question is to find out the minimal register count $k_n$ that allows the selection of the median amoung $n^2$ values. The answer can be evaluated  considering that, when eliminating the maximum and the minimum values, one has to make sure not to eliminate the global median value. Such a situation is illustrated in Figure \ref{fig:forgetful_selection} for a  3$\times$3 median filter. For better comprehension, the 9 elements of the  3$\times$3 pixel window have been represented in a row.
+\begin{figure}
+   \centering
+   \includegraphics[width=6cm]{Chapters/chapter3/img/forgetful_selection.png}
+   \caption{Forgetful selection with the minimal element register count. Illustration for 3$\times$3 pixel window represented in a row and supposed sorted.}
+   \label{fig:forgetful_selection}
+\end{figure}
+We must remember that, in the fully sorted vector, the median value will have the middle index e.g. $\lfloor n^2/2\rfloor$. 
+Moreover, assuming that both \textit{extrema} are eliminated from the first $k$ elements and that the global median is one of them would mean that:
+\begin{itemize}
+\item if the global median was the minimum among the $k$ elements, then at least $k-1$ elements would have a higher index. Considering the above median definition, at least $k-1$ elements should also have a lower index in the entire vector.
+\item if the global median was the maximum among the $k$ elements, then at least $k-1$ elements would have a lower index. Considering the above median definition, at least $k-1$ elements should also have a higher index in the entire vector.
+\end{itemize}
+Therefore, the number $k$ of elements that are part of the first selection stage can be defined by the condition 
+$$n^2-k \leq \lfloor \frac{n^2}{2} \rfloor -1$$
+which leads to:
+$$k_n=\lceil \frac{n^2}{2}\rceil+1 $$
 This rule can be applied to the first eliminating stage and remains true with the next ones as each stage suppresses exactly two values.
 In our 3$\times$3 pixel window example, the minimum register count becomes $k_9=\lceil 9/2\rceil+1 = 6$.
 
 The \textit{forgetful selection} method, used in \cite{mcguire2008median} does not imply full sorting of values, but only selecting minimum and maximum values, which, at the price of a few iteration steps ($n^2-k$), reduces arithmetic complexity.
 Listing \ref{lst:medianForget1pix3} details this process where forgetful selection is achieved by use of simple 2-value sorting function ($s()$, lines 1 to 5) that swaps input values if necessary. Moreover, whenever possible, in order to increase the Instruction-Level Parallelism, successive calls to $s()$ are done with independant elements as arguments. This is illustrated by the macro definitions of lines 7 to 14.
 
 This rule can be applied to the first eliminating stage and remains true with the next ones as each stage suppresses exactly two values.
 In our 3$\times$3 pixel window example, the minimum register count becomes $k_9=\lceil 9/2\rceil+1 = 6$.
 
 The \textit{forgetful selection} method, used in \cite{mcguire2008median} does not imply full sorting of values, but only selecting minimum and maximum values, which, at the price of a few iteration steps ($n^2-k$), reduces arithmetic complexity.
 Listing \ref{lst:medianForget1pix3} details this process where forgetful selection is achieved by use of simple 2-value sorting function ($s()$, lines 1 to 5) that swaps input values if necessary. Moreover, whenever possible, in order to increase the Instruction-Level Parallelism, successive calls to $s()$ are done with independant elements as arguments. This is illustrated by the macro definitions of lines 7 to 14.
 
-\lstinputlisting[label={lst:medianForget1pix3},caption= 3$\times$3 median filter kernel using the minimum register count of 6 and finding the median value by forgetful selection method]{Chapters/chapter3/code/kernMedianForget1pix3.cu}
+\lstinputlisting[label={lst:medianForget1pix3},caption= 3$\times$3 median filter kernel using the minimum register count of 6 to find the median value by forgetful selection method]{Chapters/chapter3/code/kernMedianForget1pix3.cu}
 
 Our such modified kernel provides significantly improved runtimes: a speedup of around 16\% is obtained, and pixel throughput reaches around 1000~MPixel/s on C2070.
 
 \subsubsection{More data output per thread}
 
 Our such modified kernel provides significantly improved runtimes: a speedup of around 16\% is obtained, and pixel throughput reaches around 1000~MPixel/s on C2070.
 
 \subsubsection{More data output per thread}
-In the case of a kernel achieving an effective memory throughput much lower than the peak value, and if enough threads are run, another technique may help hiding memory latency and thus leverage performance: one thread produces multiple pixel outputs.
-Attentive readers should notice that it would increase the register count per thread. That's true, but dividing thread block size by the same quantity allow, at least, to keep the same register count per block, which is the parallelism limiting factor.
-Moreover, it is now possible to take advantage of the window overlapping, first illustrated In Figure \ref{fig:median_overlap}, and more detailed in Figure \ref{fig:median3_overlap}. As the selection is first processed on the first 6 gray-level values and as it is exactly the number of pixels that overlap between two neighbor window of adjacent pixels, it allows to save 6 texture fetches and one \texttt{minmax6} selection per thread. Again, speedup is expected through the modified kernel source code and the associated grid dimensions presented in Listing \ref{lst:medianForget2pix3}. Important differences to be noticed are pixel coordinates computation given thread index. As each thread has to process two pixels, the number of threads in each block is divided by 2, while the grid size remains the same. Consequently, in kernel code, each thread of block coordinates $(tx, ty)$ will be in charge of processing pixels of block coordinates $(2tx, ty)$ and $(2tx+1, ty)$; lines 5 and 6 implement this.
+In the case of a kernel achieving an effective memory throughput value far from the GPU peak value, and if enough threads are run, another technique may help hiding memory latency and thus leverage performance: make sure that each thread generates multiple pixel outputs.\\
+Attentive readers could remark that it would increase the register count per thread, which can be compensated by dividing thread block size accordingly, thus allowing to keep the same register count per block.
+Moreover, it is now possible to take advantage of window overlapping, first illustrated In Figure \ref{fig:median_overlap}, and further detailed in Figure \ref{fig:median3_overlap}. As the selection is first processed on the first 6 gray-level values, e.g. exactly the number of pixels that overlap between the neighborhoods of two adjacent center pixels, 6 texture fetches and one \texttt{minmax6} selection per thread can be saved. There again, some speedup can be  expected through our modified kernel source code presented in Listing \ref{lst:medianForget2pix3}. One important difference lies in the way pixel coordinates are computed from thread indexes. As each thread has to process two pixels, the number of threads in each block is divided by 2, while the grid size remains unchanged. Consequently, in our kernel code, each thread whose block-related coordinates are $(tx, ty)$ will be in charge of processing pixels of block-related coordinates $(2tx, ty)$ and $(2tx+1, ty)$; lines 5 and 6 implement this.
 
 \begin{figure}
    \centering
    \includegraphics[width=4cm]{Chapters/chapter3/img/median3_overlap.png}
 
 \begin{figure}
    \centering
    \includegraphics[width=4cm]{Chapters/chapter3/img/median3_overlap.png}
-   \caption{Illustration of how window overlapping is used to combine 2 pixel selections in 3$\times$3 median kernel.}
+   \caption{Illustration of how window overlapping is used to combine 2 pixel selections in 3$\times$3 median kernel.}
    \label{fig:median3_overlap}
 \end{figure}
 
    \label{fig:median3_overlap}
 \end{figure}
 
-\lstinputlisting[label={lst:medianForget2pix3},caption=kernel 3$\times$3 median filter processing 2 output pixel values per thread by a combined forgetfull selection.]{Chapters/chapter3/code/kernMedian2pix3.cu}
+\lstinputlisting[label={lst:medianForget2pix3},caption=3$\times$3 median filter kernel processing 2 output pixel values per thread using combined forgetful selection.]{Chapters/chapter3/code/kernMedian2pix3.cu}
 
 
-Running this ultimate kernel saves another 10\% of runtime, as shown in Figure \ref{fig:compMedians2} and provides the best peak pixel throughput known so far on C2070 of 1155~Mpixel/s which is 86\% of the maximum effective throughput.
+Running this $3\times 3$ kernel saves another 10\% runtime, as shown in Figure \ref{fig:compMedians2} and provides the best peak pixel throughput value known so far on C2070: 1155~Mpixel/s which is 86\% the maximum effective throughput.
 
 \begin{figure}
    \centering
 
 \begin{figure}
    \centering
@@ -351,24 +372,22 @@ Running this ultimate kernel saves another 10\% of runtime, as shown in Figure \
    \label{fig:compMedians2}
 \end{figure}
 
    \label{fig:compMedians2}
 \end{figure}
 
-\section{Median filter 5$\times$5 and more}
-Considering the maximum register count allowed dper thread (63) and trying to push this technique to its limit would let us design median filters up to 9$\times$9 pixel window. This maximum would actually use  $k_{81}=\lceil 81/2\rceil+1 = 42$ registers per thread plus a few ones used by the compiler to complete arithmetic operations (9) leading to a total register count of 51. 
-This would oviously forbids us to compute more than one pixel per thread, but also would limit the number of concurrent threads per block. Our measurements show that this technique is still worth using for the 5$\times$5 median but that larger window sizes could take advantage of using shared memory.
-The next two sections will first detail the particular case of the 5$\times$5 median through register-only method and then a generic kernel for larger window sizes.
+\section{A 5$\times$5 and more median filter }
+Considering the maximum register count allowed per thread (63) and trying to push this technique to its limit potentially allows designing up to 9$\times$9 median filters. Such maximum would actually use  $k_{81}=\lceil 81/2\rceil+1 = 42$ registers per thread plus 9, used by the compiler to complete arithmetic operations. This leads to a total register count of 51, which would forbid to compute more than one pixel per thread, but also would limit the number of concurrent threads per block. Our measurements show that this technique is still worth using for the 5$\times$5 median. As for larger window sizes, one option could be using shared memory.
+The next two sections will first detail the particular case of the 5$\times$5 median through register-only method and eventually a generic kernel for larger window sizes.
 
 
-\subsection{Median filter 5$\times$5: register only }
-The minimum register count allowing to apply the forgetfull selection method to 5$\times$5 median filter is $k_{25}=\lceil 25/2\rceil+1 = 14$. Moreover, two adjacent overlapping windows share 20 pixels ($n^2-one\_column$) so that, when processing 2 pixels at once, from the first selection stage with 14 common values to the passing of the last common value, a count of 6 common selection stages can be carried out. That allows to limit the register count to 14+8=22 per thread. Figure \ref{fig:median5overlap}
+\subsection{A register-only 5$\times$5 median filter \label{sec:median5}}
+The minimum register count required to apply the forgetful selection method to a 5$\times$5 median filter is $k_{25}=\lceil 25/2\rceil+1 = 14$. Moreover, two adjacent overlapping windows share 20 pixels ($n^2-one\_column$) so that, when processing 2 pixels simultaneously, a count of 6 common selection stages can be carried out from the first selection stage with 14 common values to the processing of the last common value. That allows to limit register count to 14+8=22 per thread. Figure \ref{fig:median5overlap} describes the distribution of overlapping pixels, implemented in Listing \ref{lst:medianForget2pix5}: common selection stages take place from line 25 to line 37, while the remaining separate selection stages occur between lines 45 and 62 after the separation of line 40.
 \begin{figure}
    \centering
 \begin{figure}
    \centering
-   \includegraphics[width=8cm]{Chapters/chapter3/img/median5_overlap.png}
-   \caption{Reduction of register count in 5$\times$5 register only median kernel, outputting 2 pixel at once. The first 6 forgetful selection stages are common to both processed center pixels. Only the last 5 selections have to be done separately.}
+   \includegraphics[width=6cm]{Chapters/chapter3/img/median5_overlap.png}
+   \caption{Reducing register count in a 5$\times$5 register-only median kernel outputting 2 pixels simultaneously. The first 6 forgetful selection stages are common to both processed center pixels. Only the last 5 selections have to be done separately.}
    \label{fig:median5overlap}
 \end{figure}
    \label{fig:median5overlap}
 \end{figure}
-Listing \ref{lst:medianForget2pix5} reproduces the kernel \texttt{kernel\_medianForget2pix5} code where the common selection stages take place from line XX to line YY. The remaining separate selection stages occur between lines XX and YY after the separation of line GG.
 
 \lstinputlisting[label={lst:medianForget2pix5},caption=kernel 5$\times$5 median filter processing 2 output pixel values per thread by a combined forgetfull selection.]{Chapters/chapter3/code/kernMedian2pix5.cu}
 
 
 \lstinputlisting[label={lst:medianForget2pix5},caption=kernel 5$\times$5 median filter processing 2 output pixel values per thread by a combined forgetfull selection.]{Chapters/chapter3/code/kernMedian2pix5.cu}
 
-Timing results follow the same variations with image size than previous ones. That is why  Table \ref{tab:median5comp} shows only throughput values obtained for C2070 card and 4096$\times$4096 pixel image.
+Timing results follow the same variations with image size as in previously presented kernels. That is why  Table \ref{tab:median5comp} shows only throughput values obtained for C2070 card and 4096$\times$4096 pixel image.
 
 \begin{table}[h]
 %\newlength\savedwidth
 
 \begin{table}[h]
 %\newlength\savedwidth
@@ -385,44 +404,20 @@ Timing results follow the same variations with image size than previous ones. Th
  \shortstack{\textbf{Throughput}\\\textbf{(MP/s)}}&551&738&152&540\\\hline
 \end{tabular}
 }  
  \shortstack{\textbf{Throughput}\\\textbf{(MP/s)}}&551&738&152&540\\\hline
 \end{tabular}
 }  
-\caption{Performance of various 5$\times$5 median kernel implementations, applied on 4096$\times$4096 pixel image with C2070 GPU card..}
+\caption{Performance of various 5$\times$5 median kernel implementations, applied on 4096$\times$4096 pixel image with C2070 GPU card.}
 \label{tab:median5comp}
 \end{table}  
 
 \label{tab:median5comp}
 \end{table}  
 
-\subsection{True median filter n$\times$n}
-Shared memory can represent an efficient way to reduce global or texture loads, but it is also a limiting factor for performance.
-On Fermi GPUs (as C2070), a maximum of 48~kB of per block shared memory is avalaible. With 16-bit coded gray levels, that allows to store up to 24576 values, which can be organised as a square of 156$\times$156 pixels maximum.
-A point is that it is not efficient to use the shared memory at its maximum, as it would reduce the number of blocks beeing run in parallel on each SM.
-Another point is that it is not  possible to avoid bank conflicts when designing a generic median kernel.
-Thus, the most efficient way to code a generic, large window, median filter, is to do without shared memory but use texture direct fetching.
-Listing \ref{lst:medianForgetGeneric} reproduce such a code, where the most interesting part is between lines XX and YY, where the forgetfull selection has been generalized to an arbitrary window size.
-Performance results summarized in table \ref{tab:medianForgetGeneric} demonstrate that such a method is far from beeing as efficient as small fixed-size implementations. 
-
-\begin{table}[h]
-%\newlength\savedwidth
-\newcommand\whline{\noalign{\global\savedwidth
-  \arrayrulewidth\global\arrayrulewidth 1.5pt}
-  \hline \noalign{\global\arrayrulewidth
-  \savedwidth}
-}
-\centering
-{\scriptsize
-\begin{tabular}{|l||c|c|c|c|}
-\hline
-\shortstack{\textbf{Window size}\\(in pixels)}&\textbf{121}&\textbf{169}&\textbf{225}&\textbf{441}\\\whline
- \shortstack{\textbf{Throughput}\\\textbf{(MP/s)}}& & & & \\\hline
-\end{tabular}
-}  
-\caption{Performance of generic median kernel applied to various window sizes on 4096$\times$4096 pixel image.}
-\label{tab:medianForgetGeneric}
-\end{table} 
-
-\lstinputlisting[label={lst:medianForgetGeneric},caption= generic median kernel by forgetfull selection.]{Chapters/chapter3/code/kernMedianForgetGeneric.cu}
+\subsection{Fast approximated n$\times$n median filter }
+Large window median filters are less widespread and used in more specific fields, such as digital microscopy: for example in \cite{paper_bio_background}, an estimation of the background gray-level intensity is achieved through a $111\times 111$ median filtering (processed in around 2s for a 4MPixel image). In such cases, a possible technique is to split median selection into two separate 1-D stages: one in the vertical direction and the other in the horizontal direction. Image processing specialists may object that this method does not select the actual median value. This is true but, in the case of large window sizes and \textit{real-life} images, the so selected value is statistically near the actual median value and often represents an acceptable approximation. Such a filter is sometimes called \textit{smoother}.
 
 
-\subsection{Fast approximated median filter n$\times$n}
-If faster process is required, a possible technique is to split median selection in two separate 1-D stages: one in the vertical direction and the other in the horizontal direction. Image processing specialists would say that this method does not selects the actual median value. They would be right, but for large window sizes and \textit{real-life} images, the so selected value is statically near the true median value and often represents an acceptable approximation.
-In this particular case, we use a Torben Morgensen sorting algorithm, as it only needs a few and fixed register count. 
+As explained earlier in this section, the use of large window median filters rules out register-only implementation,
+which suggests to privilege the use of shared memory. The 1-D operation almost completely avoids bank conflicts in shared memory accesses. 
+Furthermore, the above-described forgetful selection method cannot be used anymore, as too many registers would be required.\\Instead, the Torben Morgensen sorting algorithm is used, as its required register count is both low and constant, and avoids the use of a local vector, unlike histogram-based methods.
 
 
+Listing \ref{lst:medianSeparable} presents a kernel code that implements the above considerations and achieves a 1-D vertical $n \times 1$ median filter. The shared memory vector is declared as \texttt{extern} (Line 16) as its size is determined at runtime and passed to the kernel call as an argument. Lines 20 to 29 perform data prefetching, including the $2n$-row halo ($n$ at the bottom and $n$ at the top of each block). Then one synchronization barrier is mandatory (line 31) to ensure that all needed data is ready prior to its use by the different threads.
+Torben Morgensen sorting takes place between lines 37 and 71 and eventually, the transposed output value is stored in global memory at line 73. Outputting the transposed image in global memory saves time and allows to re-use the same kernel to achieve the second step, e.g 1-D horizontal $n \times 1$ median filtering. The final transpose is done at transfer time, when copying data from GPU to CPU memory, which once more saves time while actually generating the expected image. 
+It has to be noticed that this smoother, unlike the technique we proposed for fixed-size median filters, can not be considered as a state-of-the-art technique, as for example the one presented in \cite{4287006}. However, it may be considered as a good, easy to use and efficient alternative as confirmed by the results presented in Table \ref{tab:medianSeparable}. Pixel throughput values achieved by our kernel, though not constant with window size, remain very competitive if window size is kept under $120\times 120$ pixels (in \cite{4287006}, pixel throughput is around 7MP/s).  
 \begin{table}[h]
 %\newlength\savedwidth
 \newcommand\whline{\noalign{\global\savedwidth
 \begin{table}[h]
 %\newlength\savedwidth
 \newcommand\whline{\noalign{\global\savedwidth
@@ -434,17 +429,16 @@ In this particular case, we use a Torben Morgensen sorting algorithm, as it only
 {\scriptsize
 \begin{tabular}{|l||c|c|c|c|}
 \hline
 {\scriptsize
 \begin{tabular}{|l||c|c|c|c|}
 \hline
-\shortstack{\textbf{Window size}\\(in pixels)}&\textbf{121}&\textbf{169}&\textbf{225}&\textbf{441}\\\whline
- \shortstack{\textbf{Throughput}\\\textbf{(MP/s)}}& & & & \\\hline
+\shortstack{\textbf{Window edge size}\\(in pixels)}&\textbf{41}&\textbf{81}&\textbf{111}&\textbf{121}\\\whline
+ \shortstack{\textbf{Throughput}\\\textbf{(MP/s)}}&54 &27 & 20& 18\\\hline
 \end{tabular}
 }  
 \end{tabular}
 }  
-\caption{Performance of generic pseudo separable median kernel applied to various window sizes on 4096$\times$4096 pixel image.}
+\caption{Measured performance of one generic pseudo-separable median kernel applied to 4096$\times$4096 pixel image with various window sizes.}
 \label{tab:medianSeparable}
 \end{table} 
 
 \lstinputlisting[label={lst:medianSeparable},caption= generic pseudo median kernel.]{Chapters/chapter3/code/kernMedianSeparable.cu}
 
 \label{tab:medianSeparable}
 \end{table} 
 
 \lstinputlisting[label={lst:medianSeparable},caption= generic pseudo median kernel.]{Chapters/chapter3/code/kernMedianSeparable.cu}
 
-
 \section{Glossary}
 \begin{Glossary}
 \item[CUDA] Compute Unified Device Architecture.
 \section{Glossary}
 \begin{Glossary}
 \item[CUDA] Compute Unified Device Architecture.
index 0957bd3f5b1e67f99dcf64f54baafe52ef00b950..20228c22d4c30bda2af856be3967aa62c07f0f43 100644 (file)
Binary files a/BookGPU/Chapters/chapter3/img/median3_overlap.png and b/BookGPU/Chapters/chapter3/img/median3_overlap.png differ
index f616641329b93663cd386beb9a0972222d289803..fb82bfe50552d528b14cf4871088251329b1f77b 100644 (file)
Binary files a/BookGPU/Chapters/chapter3/img/median5_overlap.png and b/BookGPU/Chapters/chapter3/img/median5_overlap.png differ
index 3c17e21a73f53a8d585ded7c75fc2e5b154460c3..80b13180655cdfbe1cc30bdf87943fc8ebd1c8e1 100644 (file)
          d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
          transform="scale(-0.6,-0.6)" />
     </marker>
          d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
          transform="scale(-0.6,-0.6)" />
     </marker>
+    <marker
+       inkscape:stockid="Arrow2Mend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow2Mend-9"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10644-62"
+         style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
+         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+         transform="scale(-0.6,-0.6)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow2Mend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow2Mend-5"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10644-8"
+         style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
+         d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
+         transform="scale(-0.6,-0.6)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Mend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Mend-2"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10626-2"
+         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="matrix(-0.4,0,0,-0.4,-4,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Mend"
+       orient="auto"
+       refY="0"
+       refX="0"
+       id="Arrow1Mend-1"
+       style="overflow:visible">
+      <path
+         inkscape:connector-curvature="0"
+         id="path10626-7"
+         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
+         transform="matrix(-0.4,0,0,-0.4,-4,0)" />
+    </marker>
   </defs>
   <sodipodi:namedview
      id="base"
   </defs>
   <sodipodi:namedview
      id="base"
      borderopacity="1.0"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      borderopacity="1.0"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
-     inkscape:zoom="3.06"
-     inkscape:cx="220.66855"
-     inkscape:cy="256.43117"
+     inkscape:zoom="1.75"
+     inkscape:cx="337.73435"
+     inkscape:cy="359.91794"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="false"
          id="tspan14210-5-6"
          x="84.712685"
          y="570.45093">6</tspan></text>
          id="tspan14210-5-6"
          x="84.712685"
          y="570.45093">6</tspan></text>
-    <g
-       id="g7132"
+    <rect
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+       id="rect3022-2-1"
+       width="13.967434"
+       height="13.967434"
+       x="361.24649"
+       y="475.53052"
+       inkscape:tile-cx="101.23672"
+       inkscape:tile-cy="86.006315"
+       inkscape:tile-w="13.967434"
+       inkscape:tile-h="13.967434"
+       inkscape:tile-x0="94.253006"
+       inkscape:tile-y0="79.022598"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
-       inkscape:export-xdpi="300"
-       inkscape:export-ydpi="300">
-      <rect
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         inkscape:tile-y0="79.022598"
-         inkscape:tile-x0="94.253006"
-         inkscape:tile-h="13.967434"
-         inkscape:tile-w="13.967434"
-         inkscape:tile-cy="86.006315"
-         inkscape:tile-cx="101.23672"
-         y="475.53052"
-         x="361.24649"
-         height="13.967434"
-         width="13.967434"
-         id="rect3022-2-1"
-         style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5842-4-7"
-         transform="translate(-4.4e-6,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5844-27-8"
-         transform="translate(-4.4e-6,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5846-7-4"
-         transform="translate(-4.4e-6,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5848-0-4"
-         transform="translate(-4.4e-6,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5850-8-1"
-         transform="translate(-4.4e-6,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5852-2-4"
-         transform="translate(-4.4e-6,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5904-4-1"
-         transform="translate(13.967438,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5906-0-1"
-         transform="translate(13.967438,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5908-7-1"
-         transform="translate(13.967438,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5910-4-6"
-         transform="translate(13.967438,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5912-2-0"
-         transform="translate(13.967438,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5914-1-7"
-         transform="translate(13.967438,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5916-81-4"
-         transform="translate(13.967438,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5968-3-9"
-         transform="translate(27.934868,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5970-0-4"
-         transform="translate(27.934868,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5972-8-8"
-         transform="translate(27.934868,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5974-5-1"
-         transform="translate(27.934868,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5976-32-2"
-         transform="translate(27.934868,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5978-7-9"
-         transform="translate(27.934868,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use5980-94-5"
-         transform="translate(27.934868,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6032-8-2"
-         transform="translate(41.902298,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6034-6-2"
-         transform="translate(41.902298,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6036-9-0"
-         transform="translate(41.902298,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6038-36-2"
-         transform="translate(41.902298,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6040-9-8"
-         transform="translate(41.902298,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6042-6-7"
-         transform="translate(41.902298,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6044-7-5"
-         transform="translate(41.902298,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6096-8-4"
-         transform="translate(55.869738,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6098-74-6"
-         transform="translate(55.869738,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6100-4-9"
-         transform="translate(55.869738,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6102-27-5"
-         transform="translate(55.869738,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6104-61-2"
-         transform="translate(55.869738,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6106-3-9"
-         transform="translate(55.869738,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6108-7-4"
-         transform="translate(55.869738,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6160-7-6"
-         transform="translate(69.837168,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6162-97-7"
-         transform="translate(69.837168,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6164-2-4"
-         transform="translate(69.837168,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6166-8-6"
-         transform="translate(69.837168,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6168-4-8"
-         transform="translate(69.837168,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6170-3-6"
-         transform="translate(69.837168,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6172-1-6"
-         transform="translate(69.837168,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6224-8-7"
-         transform="translate(83.804608,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6226-1-2"
-         transform="translate(83.804608,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6228-99-1"
-         transform="translate(83.804608,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6230-5-9"
-         transform="translate(83.804608,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6232-1-4"
-         transform="translate(83.804608,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6234-3-0"
-         transform="translate(83.804608,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6236-0-6"
-         transform="translate(83.804608,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6288-3-8"
-         transform="translate(97.772038,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6290-4-8"
-         transform="translate(97.772038,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6292-6-8"
-         transform="translate(97.772038,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6294-9-7"
-         transform="translate(97.772038,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6296-4-4"
-         transform="translate(97.772038,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6298-7-1"
-         transform="translate(97.772038,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6300-4-8"
-         transform="translate(97.772038,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6352-1-0"
-         transform="translate(111.73947,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6354-9-7"
-         transform="translate(111.73947,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6356-8-7"
-         transform="translate(111.73947,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6358-24-5"
-         transform="translate(111.73947,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6360-25-6"
-         transform="translate(111.73947,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6362-4-5"
-         transform="translate(111.73947,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6364-3-3"
-         transform="translate(111.73947,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6416-9-1"
-         transform="translate(125.70691,-7.2394368e-6)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6418-6-2"
-         transform="translate(125.70691,13.967433)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6420-2-5"
-         transform="translate(125.70691,27.934863)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6422-9-2"
-         transform="translate(125.70691,41.902303)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6424-4-1"
-         transform="translate(125.70691,55.869737)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6426-9-1"
-         transform="translate(125.70691,69.837167)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <use
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         style="fill:#c8c8c8;fill-opacity:1"
-         id="use6428-2-2"
-         transform="translate(125.70691,83.804607)"
-         xlink:href="#rect3022-2-1"
-         inkscape:tiled-clone-of="#rect3022-2-1"
-         y="0"
-         x="0"
-         width="744.09448"
-         height="1052.3622" />
-      <g
-         inkscape:export-ydpi="300.0546"
-         inkscape:export-xdpi="300.0546"
-         inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median_overlap.png"
-         transform="translate(315.48801,-1.1539302)"
-         id="g14020-1">
-        <path
-           style="fill:none;stroke:#000000;stroke-width:3.70000005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Send)"
-           d="m 45.778168,475.57224 0,28.51374"
-           id="path13697-4-2"
-           inkscape:connector-curvature="0"
-           sodipodi:nodetypes="cc" />
-        <path
-           style="fill:none;stroke:#000000;stroke-width:3.70000005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Send)"
-           d="m 44.213935,476.98862 27.464791,0"
-           id="path13697-7-8-1"
-           inkscape:connector-curvature="0" />
-        <text
-           xml:space="preserve"
-           style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-           x="30.437874"
-           y="506.85364"
-           id="text13911-1-3"
-           sodipodi:linespacing="2%"><tspan
-             sodipodi:role="line"
-             id="tspan13913-5-6"
-             x="30.437874"
-             y="506.85364">i</tspan></text>
-        <text
-           xml:space="preserve"
-           style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-           x="71.151222"
-           y="466.91113"
-           id="text13911-6-2-9"
-           sodipodi:linespacing="2%"><tspan
-             sodipodi:role="line"
-             id="tspan13913-0-3-5"
-             x="71.151222"
-             y="466.91113">j</tspan></text>
-      </g>
-      <g
-         transform="translate(95.09804,-135.94771)"
-         id="g6320">
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="639.26941"
-           x="294.07147"
-           height="13.967434"
-           width="13.967434"
-           id="use5906-8-10-4"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="653.23688"
-           x="294.07147"
-           height="13.967434"
-           width="13.967434"
-           id="use5908-4-3-5"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="667.20428"
-           x="294.07147"
-           height="13.967434"
-           width="13.967434"
-           id="use5910-1-4-3"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="639.26941"
-           x="308.03891"
-           height="13.967434"
-           width="13.967434"
-           id="use5970-3-2-3"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="653.23688"
-           x="308.03891"
-           height="13.967434"
-           width="13.967434"
-           id="use5972-0-40-3"
-           style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="667.20428"
-           x="308.03891"
-           height="13.967434"
-           width="13.967434"
-           id="use5974-0-2-0"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="639.26941"
-           x="322.00635"
-           height="13.967434"
-           width="13.967434"
-           id="use6034-0-1-6"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="653.23688"
-           x="322.00635"
-           height="13.967434"
-           width="13.967434"
-           id="use6036-3-8-3"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="667.20428"
-           x="322.00635"
-           height="13.967434"
-           width="13.967434"
-           id="use6038-3-3-4"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-      </g>
-      <g
-         style="opacity:0.5999999;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
-         transform="translate(109.16038,-135.96296)"
-         id="g6320-4">
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="639.26941"
-           x="294.07147"
-           height="13.967434"
-           width="13.967434"
-           id="use5906-8-10-4-5"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="653.23688"
-           x="294.07147"
-           height="13.967434"
-           width="13.967434"
-           id="use5908-4-3-5-9"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="667.20428"
-           x="294.07147"
-           height="13.967434"
-           width="13.967434"
-           id="use5910-1-4-3-8"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="639.26941"
-           x="308.03891"
-           height="13.967434"
-           width="13.967434"
-           id="use5970-3-2-3-3"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="653.23688"
-           x="308.03891"
-           height="13.967434"
-           width="13.967434"
-           id="use5972-0-40-3-4"
-           style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="667.20428"
-           x="308.03891"
-           height="13.967434"
-           width="13.967434"
-           id="use5974-0-2-0-1"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="639.26941"
-           x="322.00635"
-           height="13.967434"
-           width="13.967434"
-           id="use6034-0-1-6-4"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="653.23688"
-           x="322.00635"
-           height="13.967434"
-           width="13.967434"
-           id="use6036-3-8-3-6"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-        <rect
-           inkscape:tile-y0="79.022598"
-           inkscape:tile-x0="94.253006"
-           y="667.20428"
-           x="322.00635"
-           height="13.967434"
-           width="13.967434"
-           id="use6038-3-3-4-5"
-           style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001000000002;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
-      </g>
-      <rect
-         y="498.20248"
-         x="399.76184"
-         height="50.149471"
-         width="34.129501"
-         id="rect6376"
-         style="opacity:1;fill-opacity:0;stroke:#000000;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:10;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;fill:#000000" />
-      <path
-         sodipodi:nodetypes="cc"
-         inkscape:connector-curvature="0"
-         id="path6378"
-         d="m 410.45752,527.19878 29.41176,71.56863"
-         style="fill:none;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#Arrow2Mstart)" />
-      <path
-         inkscape:connector-curvature="0"
-         id="path6378-1"
-         d="m 424.50981,524.67582 22.87581,57.84314"
-         style="fill:none;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#Arrow2Mstart)" />
-      <path
-         inkscape:connector-curvature="0"
-         id="path7060"
-         d="m 447.05882,582.42754 11.43791,0"
-         style="fill:none;stroke:#000000;stroke-width:0.7;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" />
-      <path
-         inkscape:connector-curvature="0"
-         id="path7062"
-         d="m 439.86928,598.76741 18.30065,0"
-         style="fill:none;stroke:#000000;stroke-width:0.7;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" />
-      <text
-         sodipodi:linespacing="2%"
-         id="text7064"
-         y="587.98309"
-         x="463.0719"
-         style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-         xml:space="preserve"><tspan
-           y="587.98309"
-           x="463.0719"
-           id="tspan7066"
-           sodipodi:role="line"> </tspan></text>
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(-4.4e-6,13.967433)"
+       id="use5842-4-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(-4.4e-6,27.934863)"
+       id="use5844-27-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(-4.4e-6,41.902303)"
+       id="use5846-7-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(-4.4e-6,55.869737)"
+       id="use5848-0-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(-4.4e-6,69.837167)"
+       id="use5850-8-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(-4.4e-6,83.804607)"
+       id="use5852-2-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,-7.2394368e-6)"
+       id="use5904-4-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,13.967433)"
+       id="use5906-0-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,27.934863)"
+       id="use5908-7-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,41.902303)"
+       id="use5910-4-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,55.869737)"
+       id="use5912-2-0"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,69.837167)"
+       id="use5914-1-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(13.967438,83.804607)"
+       id="use5916-81-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,-7.2394368e-6)"
+       id="use5968-3-9"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,13.967433)"
+       id="use5970-0-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,27.934863)"
+       id="use5972-8-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,41.902303)"
+       id="use5974-5-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,55.869737)"
+       id="use5976-32-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,69.837167)"
+       id="use5978-7-9"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(27.934868,83.804607)"
+       id="use5980-94-5"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,-7.2394368e-6)"
+       id="use6032-8-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,13.967433)"
+       id="use6034-6-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,27.934863)"
+       id="use6036-9-0"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,41.902303)"
+       id="use6038-36-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,55.869737)"
+       id="use6040-9-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,69.837167)"
+       id="use6042-6-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(41.902298,83.804607)"
+       id="use6044-7-5"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,-7.2394368e-6)"
+       id="use6096-8-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,13.967433)"
+       id="use6098-74-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,27.934863)"
+       id="use6100-4-9"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,41.902303)"
+       id="use6102-27-5"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,55.869737)"
+       id="use6104-61-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,69.837167)"
+       id="use6106-3-9"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(55.869738,83.804607)"
+       id="use6108-7-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,-7.2394368e-6)"
+       id="use6160-7-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,13.967433)"
+       id="use6162-97-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,27.934863)"
+       id="use6164-2-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,41.902303)"
+       id="use6166-8-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,55.869737)"
+       id="use6168-4-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,69.837167)"
+       id="use6170-3-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(69.837168,83.804607)"
+       id="use6172-1-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,-7.2394368e-6)"
+       id="use6224-8-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,13.967433)"
+       id="use6226-1-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,27.934863)"
+       id="use6228-99-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,41.902303)"
+       id="use6230-5-9"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,55.869737)"
+       id="use6232-1-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,69.837167)"
+       id="use6234-3-0"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(83.804608,83.804607)"
+       id="use6236-0-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,-7.2394368e-6)"
+       id="use6288-3-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,13.967433)"
+       id="use6290-4-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,27.934863)"
+       id="use6292-6-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,41.902303)"
+       id="use6294-9-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,55.869737)"
+       id="use6296-4-4"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,69.837167)"
+       id="use6298-7-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(97.772038,83.804607)"
+       id="use6300-4-8"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,-7.2394368e-6)"
+       id="use6352-1-0"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,13.967433)"
+       id="use6354-9-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,27.934863)"
+       id="use6356-8-7"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,41.902303)"
+       id="use6358-24-5"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,55.869737)"
+       id="use6360-25-6"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,69.837167)"
+       id="use6362-4-5"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(111.73947,83.804607)"
+       id="use6364-3-3"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,-7.2394368e-6)"
+       id="use6416-9-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,13.967433)"
+       id="use6418-6-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,27.934863)"
+       id="use6420-2-5"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,41.902303)"
+       id="use6422-9-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,55.869737)"
+       id="use6424-4-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,69.837167)"
+       id="use6426-9-1"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <use
+       height="1052.3622"
+       width="744.09448"
+       x="0"
+       y="0"
+       inkscape:tiled-clone-of="#rect3022-2-1"
+       xlink:href="#rect3022-2-1"
+       transform="translate(125.70691,83.804607)"
+       id="use6428-2-2"
+       style="fill:#c8c8c8;fill-opacity:1"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546" />
+    <g
+       id="g14020-1"
+       transform="translate(315.48801,-1.1539302)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-ydpi="300.0546">
       <path
          sodipodi:nodetypes="cc"
          inkscape:connector-curvature="0"
       <path
          sodipodi:nodetypes="cc"
          inkscape:connector-curvature="0"
-         id="path6378-14"
-         d="m 406.54026,548.85647 29.41176,71.56863"
-         style="fill:none;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#Arrow2Mstart)" />
+         id="path13697-4-2"
+         d="m 45.778168,475.57224 0,28.51374"
+         style="fill:none;stroke:#000000;stroke-width:3.70000005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Send)" />
       <path
       <path
-         sodipodi:nodetypes="cc"
          inkscape:connector-curvature="0"
          inkscape:connector-curvature="0"
-         id="path7062-5"
-         d="m 436.27452,620.00924 21.89542,0"
-         style="fill:none;stroke:#000000;stroke-width:0.69999999000000002;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
-      <text
-         sodipodi:linespacing="2%"
-         id="text7110"
-         y="601.05505"
-         x="461.11111"
-         style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-         xml:space="preserve"><tspan
-           y="601.05505"
-           x="461.11111"
-           id="tspan7112"
-           sodipodi:role="line">first pixel</tspan></text>
-      <text
-         sodipodi:linespacing="2%"
-         id="text7114"
-         y="584.06152"
-         x="460.7843"
-         style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-         xml:space="preserve"><tspan
-           y="584.06152"
-           x="460.7843"
-           id="tspan7116"
-           sodipodi:role="line">second pixel</tspan></text>
+         id="path13697-7-8-1"
+         d="m 44.213935,476.98862 27.464791,0"
+         style="fill:none;stroke:#000000;stroke-width:3.70000005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow2Send)" />
       <text
          sodipodi:linespacing="2%"
       <text
          sodipodi:linespacing="2%"
-         id="text7118"
-         y="617.80011"
-         x="460.78433"
-         style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+         id="text13911-1-3"
+         y="506.85364"
+         x="30.437874"
+         style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
          xml:space="preserve"><tspan
          xml:space="preserve"><tspan
-           id="tspan7122"
-           y="617.80011"
-           x="460.78433"
-           sodipodi:role="line">6 common</tspan><tspan
-           id="tspan7126"
-           y="617.96008"
-           x="460.78433"
-           sodipodi:role="line" /></text>
+           y="506.85364"
+           x="30.437874"
+           id="tspan13913-5-6"
+           sodipodi:role="line">i</tspan></text>
       <text
          sodipodi:linespacing="2%"
       <text
          sodipodi:linespacing="2%"
-         id="text7128"
-         y="627.12036"
-         x="460.78433"
-         style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+         id="text13911-6-2-9"
+         y="466.91113"
+         x="71.151222"
+         style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
          xml:space="preserve"><tspan
          xml:space="preserve"><tspan
-           y="627.12036"
-           x="460.78433"
-           id="tspan7130"
-           sodipodi:role="line">pixels</tspan></text>
+           y="466.91113"
+           x="71.151222"
+           id="tspan13913-0-3-5"
+           sodipodi:role="line">j</tspan></text>
+    </g>
+    <g
+       id="g6320"
+       transform="translate(95.09804,-135.94771)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300">
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5906-8-10-4"
+         width="13.967434"
+         height="13.967434"
+         x="294.07147"
+         y="639.26941"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5908-4-3-5"
+         width="13.967434"
+         height="13.967434"
+         x="294.07147"
+         y="653.23688"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5910-1-4-3"
+         width="13.967434"
+         height="13.967434"
+         x="294.07147"
+         y="667.20428"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5970-3-2-3"
+         width="13.967434"
+         height="13.967434"
+         x="308.03891"
+         y="639.26941"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5972-0-40-3"
+         width="13.967434"
+         height="13.967434"
+         x="308.03891"
+         y="653.23688"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5974-0-2-0"
+         width="13.967434"
+         height="13.967434"
+         x="308.03891"
+         y="667.20428"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use6034-0-1-6"
+         width="13.967434"
+         height="13.967434"
+         x="322.00635"
+         y="639.26941"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use6036-3-8-3"
+         width="13.967434"
+         height="13.967434"
+         x="322.00635"
+         y="653.23688"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use6038-3-3-4"
+         width="13.967434"
+         height="13.967434"
+         x="322.00635"
+         y="667.20428"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+    </g>
+    <g
+       id="g6320-4"
+       transform="translate(109.16038,-135.96296)"
+       style="opacity:0.59999988;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300">
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5906-8-10-4-5"
+         width="13.967434"
+         height="13.967434"
+         x="294.07147"
+         y="639.26941"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5908-4-3-5-9"
+         width="13.967434"
+         height="13.967434"
+         x="294.07147"
+         y="653.23688"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5910-1-4-3-8"
+         width="13.967434"
+         height="13.967434"
+         x="294.07147"
+         y="667.20428"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5970-3-2-3-3"
+         width="13.967434"
+         height="13.967434"
+         x="308.03891"
+         y="639.26941"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5972-0-40-3-4"
+         width="13.967434"
+         height="13.967434"
+         x="308.03891"
+         y="653.23688"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use5974-0-2-0-1"
+         width="13.967434"
+         height="13.967434"
+         x="308.03891"
+         y="667.20428"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use6034-0-1-6-4"
+         width="13.967434"
+         height="13.967434"
+         x="322.00635"
+         y="639.26941"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use6036-3-8-3-6"
+         width="13.967434"
+         height="13.967434"
+         x="322.00635"
+         y="653.23688"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
+      <rect
+         style="fill:#7b7b7b;fill-opacity:1;stroke:#000000;stroke-width:0.40000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         id="use6038-3-3-4-5"
+         width="13.967434"
+         height="13.967434"
+         x="322.00635"
+         y="667.20428"
+         inkscape:tile-x0="94.253006"
+         inkscape:tile-y0="79.022598" />
     </g>
     </g>
+    <rect
+       style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:2.546;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:10;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+       id="rect6376"
+       width="34.129501"
+       height="46.073624"
+       x="399.76184"
+       y="501.19864"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#Arrow2Mstart)"
+       d="m 410.45752,527.19878 42.47422,-1.20794"
+       id="path6378"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#Arrow2Mstart)"
+       d="m 425.84271,521.21027 27.14111,-11.46789"
+       id="path6378-1"
+       inkscape:connector-curvature="0"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"
+       sodipodi:nodetypes="cc" />
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="457.47369"
+       y="515.20654"
+       id="text7064"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7066"
+         x="457.47369"
+         y="515.20654"> </tspan></text>
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="rect5765-0-1"
+       width="57.383499"
+       height="50.625294"
+       x="454.35275"
+       y="504.15118"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:0.69999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-start:url(#Arrow2Mstart)"
+       d="m 435.86415,538.72639 22.48066,3.05735"
+       id="path6378-14"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="455.51291"
+       y="528.2785"
+       id="text7110"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7112"
+         x="455.51291"
+         y="528.2785">first </tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="455.1861"
+       y="511.28494"
+       id="text7114"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7116"
+         x="455.1861"
+         y="511.28494">second</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="461.3175"
+       y="543.15747"
+       id="text7118"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         x="461.3175"
+         y="543.15747"
+         id="tspan7122">6 common</tspan><tspan
+         sodipodi:role="line"
+         x="461.3175"
+         y="543.31744"
+         id="tspan7126" /></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="461.3175"
+       y="552.47772"
+       id="text7128"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7130"
+         x="461.3175"
+         y="552.47772">pixels</tspan></text>
     <rect
        style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
        id="rect3022-2-0"
     <rect
        style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.52912939;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
        id="rect3022-2-0"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        inkscape:export-xdpi="300.0546"
        inkscape:export-ydpi="300.0546" />
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        inkscape:export-xdpi="300.0546"
        inkscape:export-ydpi="300.0546" />
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.10000000000000001;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+       id="rect5765"
+       width="49.673203"
+       height="32.026142"
+       x="150"
+       y="761.83929"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
     <use
        height="1052.3622"
        width="744.09448"
     <use
        height="1052.3622"
        width="744.09448"
        inkscape:export-ydpi="300" />
     <text
        xml:space="preserve"
        inkscape:export-ydpi="300" />
     <text
        xml:space="preserve"
-       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-       x="225.73856"
-       y="757.26416"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996000000002%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="225.41176"
+       y="757.591"
        id="text7633"
        sodipodi:linespacing="2%"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        id="text7633"
        sodipodi:linespacing="2%"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        inkscape:export-ydpi="300"><tspan
          sodipodi:role="line"
          id="tspan7635"
        inkscape:export-ydpi="300"><tspan
          sodipodi:role="line"
          id="tspan7635"
-         x="225.73856"
-         y="757.26416">14 first </tspan><tspan
+         x="225.41176"
+         y="757.591">14 first </tspan><tspan
          sodipodi:role="line"
          sodipodi:role="line"
-         x="225.73856"
-         y="757.42413"
+         x="225.41176"
+         y="757.75098"
          id="tspan7679" /></text>
     <text
        xml:space="preserve"
          id="tspan7679" /></text>
     <text
        xml:space="preserve"
-       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996000000002%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
        x="254.1458"
        y="798.53583"
        id="text7633-3"
        x="254.1458"
        y="798.53583"
        id="text7633-3"
          id="tspan7635-7"
          x="254.1458"
          y="798.53583">6 last </tspan></text>
          id="tspan7635-7"
          x="254.1458"
          y="798.53583">6 last </tspan></text>
+    <rect
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="rect5765-0"
+       width="132.02614"
+       height="11.437907"
+       x="200.3268"
+       y="835.36871"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
     <text
        xml:space="preserve"
        style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
     <text
        xml:space="preserve"
        style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
          y="843.63391">5 specific pixels for both center pixels</tspan></text>
     <text
        xml:space="preserve"
          y="843.63391">5 specific pixels for both center pixels</tspan></text>
     <text
        xml:space="preserve"
-       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-       x="225.817"
-       y="780.79358"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996000000002%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="255.88235"
+       y="768.37531"
        id="text7681"
        sodipodi:linespacing="2%"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        id="text7681"
        sodipodi:linespacing="2%"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        inkscape:export-ydpi="300"><tspan
          sodipodi:role="line"
          id="tspan7683"
        inkscape:export-ydpi="300"><tspan
          sodipodi:role="line"
          id="tspan7683"
-         x="225.817"
-         y="780.79358">pixels</tspan></text>
+         x="255.88235"
+         y="768.37531">pixels</tspan></text>
     <text
        xml:space="preserve"
     <text
        xml:space="preserve"
-       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
-       x="226.1438"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996000000002%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="223.45099"
        y="768.37524"
        id="text7685"
        sodipodi:linespacing="2%"
        y="768.37524"
        id="text7685"
        sodipodi:linespacing="2%"
        inkscape:export-ydpi="300"><tspan
          sodipodi:role="line"
          id="tspan7687"
        inkscape:export-ydpi="300"><tspan
          sodipodi:role="line"
          id="tspan7687"
-         x="226.1438"
+         x="223.45099"
          y="768.37524">common</tspan></text>
     <text
        xml:space="preserve"
          y="768.37524">common</tspan></text>
     <text
        xml:space="preserve"
-       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996000000002%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
        x="223.52942"
        y="810.85895"
        id="text7689"
        x="223.52942"
        y="810.85895"
        id="text7689"
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        inkscape:export-xdpi="300"
        inkscape:export-ydpi="300" />
        inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
        inkscape:export-xdpi="300"
        inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Mend)"
+       d="m 187.25492,770.21408 47.0588,7.51633"
+       id="path7693-3"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Mend)"
+       d="m 200.4222,783.75887 47.05881,-0.3268"
+       id="path7693-3-4"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="171.88223"
+       y="772.06525"
+       id="text7110-6"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7112-3"
+         x="171.88223"
+         y="772.06525">first</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="172.27417"
+       y="786.43237"
+       id="text7114-7"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7116-7"
+         x="172.27417"
+         y="786.43237">second</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:26.3697567px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="183.51283"
+       y="695.76587"
+       id="text5719"
+       sodipodi:linespacing="2%"
+       transform="scale(0.88660299,1.1279005)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5721"
+         x="183.51283"
+         y="695.76587">{</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="138.26659"
+       y="782.83759"
+       id="text7681-8"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7683-8"
+         x="138.26659"
+         y="782.83759">pixels</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="137.93977"
+       y="774.34082"
+       id="text7681-8-5"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median5_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7683-8-1"
+         x="137.93977"
+         y="774.34082">center</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:26.3697567px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="-550.04694"
+       y="466.20789"
+       id="text5719-2"
+       sodipodi:linespacing="2%"
+       transform="scale(-0.88660302,1.1279005)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5721-4"
+         x="-550.04694"
+         y="466.20789">{</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="489.5311"
+       y="526.40088"
+       id="text7128-2"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7130-8"
+         x="489.5311"
+         y="526.40088">pixels</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="489.5311"
+       y="515.28973"
+       id="text7128-4"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/median3_overlap.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan7130-87"
+         x="489.5311"
+         y="515.28973">center</tspan></text>
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="425.31799"
+       height="23.887083"
+       width="22.183298"
+       id="use6160-7-3-9"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="447.50131"
+       height="23.887083"
+       width="22.183298"
+       id="use6224-8-0-4"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="469.6846"
+       height="23.887083"
+       width="22.183298"
+       id="use6288-3-6-2"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="491.86792"
+       height="23.887083"
+       width="22.183298"
+       id="use6352-1-6-3"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="514.05121"
+       height="23.887083"
+       width="22.183298"
+       id="use6416-9-6-3"
+       style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="536.23456"
+       height="23.887083"
+       width="22.183298"
+       id="use6480-6-5-9"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="558.41779"
+       height="23.887083"
+       width="22.183298"
+       id="use6544-8-6-3"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.67651"
+       x="580.60107"
+       height="23.887083"
+       width="22.183298"
+       id="use6610-1-6-1"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <rect
+       inkscape:export-ydpi="300.0546"
+       inkscape:export-xdpi="300.0546"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:tile-y0="79.022598"
+       inkscape:tile-x0="94.253006"
+       y="711.73224"
+       x="602.78442"
+       height="23.887083"
+       width="22.183298"
+       id="use6672-2-4-6"
+       style="fill:#c8c8c8;fill-opacity:1;stroke:#000000;stroke-width:0.87204695;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="500.57144"
+       y="653.79077"
+       id="text5595"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5597"
+         x="500.57144"
+         y="653.79077">median</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="380.85715"
+       y="752.93359"
+       id="text5599"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5601"
+         x="380.85715"
+         y="752.93359">min</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="644.85718"
+       y="755.79071"
+       id="text5603"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5605"
+         x="644.85718"
+         y="755.79071">max</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="409.71429"
+       y="670.07642"
+       id="text5607"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5609"
+         x="409.71429"
+         y="670.07642">4 elements </tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="574.323"
+       y="669.87561"
+       id="text5607-6"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5609-2"
+         x="574.323"
+         y="669.87561">4 elements </tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="409.14285"
+       y="684.93359"
+       id="text5632"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5634"
+         x="409.14285"
+         y="684.93359">with lower index</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="539.71429"
+       y="684.93359"
+       id="text5636"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5638"
+         x="539.71429"
+         y="684.93359">with higher index</tspan></text>
+    <rect
+       style="fill:#000000;fill-opacity:0.50196078;stroke:none"
+       id="rect5640"
+       width="138.85712"
+       height="32.571487"
+       x="421.71426"
+       y="707.21936"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <text
+       xml:space="preserve"
+       style="font-size:72.52617645px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="904.65387"
+       y="-424.61655"
+       id="text5642"
+       sodipodi:linespacing="2%"
+       transform="matrix(0,0.76045252,-1.3150065,0,0,0)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5644"
+         x="904.65387"
+         y="-424.61655">{</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:72.52617645px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="903.40137"
+       y="-336.27466"
+       id="text5642-0"
+       sodipodi:linespacing="2%"
+       transform="matrix(0,0.76045252,-1.3150065,0,0,0)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5644-6"
+         x="903.40137"
+         y="-336.27466">{</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:90.03807068px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="-1237.9453"
+       y="-277.77811"
+       id="text5642-4"
+       sodipodi:linespacing="2%"
+       transform="matrix(0,-0.61254883,-1.6325229,0,0,0)"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5644-7"
+         x="-1237.9453"
+         y="-277.77811">{</tspan></text>
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1.8;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Mend);stroke-miterlimit:4;stroke-dasharray:none"
+       d="m 524,660.36218 0,49.71429"
+       id="path5676"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1.77665675;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow1Mend)"
+       d="M 642.86882,745.69885 626.71734,733.7238"
+       id="path5676-9"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1.77665675;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;marker-end:url(#Arrow1Mend)"
+       d="M 406.86132,743.79956 423.0128,731.82451"
+       id="path5676-9-1"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="cc"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300" />
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="423.28268"
+       y="770.07648"
+       id="text5938"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5940"
+         x="423.28268"
+         y="770.07648">minimal element count</tspan><tspan
+         sodipodi:role="line"
+         x="423.28268"
+         y="770.35651"
+         id="tspan5942" /></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="440.5589"
+       y="784.93359"
+       id="text5944"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5946"
+         x="440.5589"
+         y="784.93359">required to avoid</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:1.99999996%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:FreeSans;-inkscape-font-specification:FreeSans"
+       x="434.66992"
+       y="800.93365"
+       id="text5948"
+       sodipodi:linespacing="2%"
+       inkscape:export-filename="/home/perrot/Documents/BookGPU/Chapters/chapter3/img/forgetful_selection.png"
+       inkscape:export-xdpi="300"
+       inkscape:export-ydpi="300"><tspan
+         sodipodi:role="line"
+         id="tspan5950"
+         x="434.66992"
+         y="800.93365">median elimination</tspan></text>
   </g>
 </svg>
   </g>
 </svg>