\hypertarget{a02527}{
\section{mln::data::approx Namespace Reference}
\label{d7/d7d/a02527}\index{mln::data::approx@{mln::data::approx}}
}


Namespace of image processing routines related to pixel levels with approximation.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02528}{impl}


\begin{DoxyCompactList}\small\item\em Implementation namespace of \hyperlink{a02527}{data::approx} namespace. \item\end{DoxyCompactList}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02527_aa65ab969313620f4e4644dd9e7074fb7}{median} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00453}{win::rectangle2d} \&win)
\item 
{\footnotesize template$<$typename I $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02527_a868eaaf9ff061e17108878d6bbdad146}{median} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00452}{win::octagon2d} \&win)
\item 
{\footnotesize template$<$typename I $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02527_a9c3848a777aa04aad83f5bbe6b7cb71a}{median} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00445}{win::disk2d} \&win)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of image processing routines related to pixel levels with approximation. 

\subsection{Function Documentation}
\hypertarget{a02527_aa65ab969313620f4e4644dd9e7074fb7}{
\index{mln::data::approx@{mln::data::approx}!median@{median}}
\index{median@{median}!mln::data::approx@{mln::data::approx}}
\subsubsection[{median}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ mln::trait::concrete$<$ I $>$::ret mln::data::approx::median (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const win::rectangle2d \&}]{ win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/d7d/a02527_aa65ab969313620f4e4644dd9e7074fb7}
Compute in {\ttfamily output} an approximate of the median filter of image {\ttfamily input} by the 2D rectangle {\ttfamily win}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The image to be filtered. \item[\mbox{\tt[in]} {\em win}]The rectangle.\end{DoxyParams}
The approximation is based on a vertical median ran after an horizontal median.

\begin{DoxyPrecond}{Precondition}
{\ttfamily input} and {\ttfamily output} have to be initialized. 
\end{DoxyPrecond}


Definition at line 112 of file approx/median.hh.



Referenced by median().

\hypertarget{a02527_a868eaaf9ff061e17108878d6bbdad146}{
\index{mln::data::approx@{mln::data::approx}!median@{median}}
\index{median@{median}!mln::data::approx@{mln::data::approx}}
\subsubsection[{median}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ mln::trait::concrete$<$ I $>$::ret mln::data::approx::median (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const win::octagon2d \&}]{ win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/d7d/a02527_a868eaaf9ff061e17108878d6bbdad146}
Compute in {\ttfamily output} an approximate of the median filter of image {\ttfamily input} by the 2D octagon {\ttfamily win}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The image to be filtered. \item[\mbox{\tt[in]} {\em win}]The octagon.\end{DoxyParams}
The approximation is based on a vertical median and an horizontal median an two diagonal median.

\begin{DoxyPrecond}{Precondition}
{\ttfamily input} and {\ttfamily output} have to be initialized. 
\end{DoxyPrecond}


Definition at line 159 of file approx/median.hh.



References median().

\hypertarget{a02527_a9c3848a777aa04aad83f5bbe6b7cb71a}{
\index{mln::data::approx@{mln::data::approx}!median@{median}}
\index{median@{median}!mln::data::approx@{mln::data::approx}}
\subsubsection[{median}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ mln::trait::concrete$<$ I $>$::ret mln::data::approx::median (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const win::disk2d \&}]{ win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/d7d/a02527_a9c3848a777aa04aad83f5bbe6b7cb71a}
Compute in {\ttfamily output} an approximate of the median filter of image {\ttfamily input} by the 2D disk {\ttfamily win}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The image to be filtered. \item[\mbox{\tt[in]} {\em win}]The disk.\end{DoxyParams}
The approximation is based on a vertical median and an horizontal median an two diagonal median.

\begin{DoxyPrecond}{Precondition}
{\ttfamily input} and {\ttfamily output} have to be initialized. 
\end{DoxyPrecond}


Definition at line 132 of file approx/median.hh.



References median().

