\hypertarget{a02500}{
\section{mln::binarization Namespace Reference}
\label{d4/dad/a02500}\index{mln::binarization@{mln::binarization}}
}


Namespace of \char`\"{}point-\/wise\char`\"{} expression tools.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename F $>$ }\\mln::trait::ch\_\-value$<$ I, bool $>$::ret \hyperlink{a02500_ae065a89fa92ed22d69cec8953835f070}{binarization} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00033}{Function\_\-v2b}$<$ F $>$ \&fun)
\begin{DoxyCompactList}\small\item\em Thresholds the values of {\ttfamily input} so that they can be stored in the {\ttfamily output} binary image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\mln::trait::ch\_\-value$<$ I, bool $>$::ret \hyperlink{a02500_a222b50334175d059dd2329ebaf5cfd05}{threshold} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const typename I::value threshold)
\begin{DoxyCompactList}\small\item\em Thresholds the values of {\ttfamily input} so that they can be stored in the {\ttfamily output} binary image. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of \char`\"{}point-\/wise\char`\"{} expression tools. 

\subsection{Function Documentation}
\hypertarget{a02500_ae065a89fa92ed22d69cec8953835f070}{
\index{mln::binarization@{mln::binarization}!binarization@{binarization}}
\index{binarization@{binarization}!mln::binarization@{mln::binarization}}
\subsubsection[{binarization}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ mln::trait::ch\_\-value$<$ I, bool $>$::ret mln::binarization::binarization (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Function\_\-v2b$<$ F $>$ \&}]{ fun}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dad/a02500_ae065a89fa92ed22d69cec8953835f070}


Thresholds the values of {\ttfamily input} so that they can be stored in the {\ttfamily output} binary image. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em fun}]The thresholding function, from value(I) to bool.\end{DoxyParams}
for\_\-all(p), output(p) = fun(p) 

Definition at line 86 of file binarization.hh.



Referenced by threshold().

\hypertarget{a02500_a222b50334175d059dd2329ebaf5cfd05}{
\index{mln::binarization@{mln::binarization}!threshold@{threshold}}
\index{threshold@{threshold}!mln::binarization@{mln::binarization}}
\subsubsection[{threshold}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ mln::trait::ch\_\-value$<$ I, bool $>$::ret mln::binarization::threshold (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const typename I::value}]{ threshold}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/dad/a02500_a222b50334175d059dd2329ebaf5cfd05}


Thresholds the values of {\ttfamily input} so that they can be stored in the {\ttfamily output} binary image. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em threshold}]The threshold.\end{DoxyParams}
If input(p) is greater or equal than the threshold, the value in the output image in the same point will be TRUE, else FALSE. 

Definition at line 61 of file binarization/threshold.hh.



References binarization().

