\hypertarget{a02475}{
\section{mln::accu Namespace Reference}
\label{d2/d70/a02475}\index{mln::accu@{mln::accu}}
}


Namespace of accumulators.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02476}{image}


\begin{DoxyCompactList}\small\item\em Namespace of accumulator image routines. \item\end{DoxyCompactList}

\item 
namespace \hyperlink{a02480}{impl}


\begin{DoxyCompactList}\small\item\em Implementation namespace of accumulator namespace. \item\end{DoxyCompactList}

\item 
namespace \hyperlink{a02483}{logic}


\begin{DoxyCompactList}\small\item\em Namespace of logical accumulators. \item\end{DoxyCompactList}

\item 
namespace \hyperlink{a02484}{math}


\begin{DoxyCompactList}\small\item\em Namespace of mathematic accumulators. \item\end{DoxyCompactList}

\item 
namespace \hyperlink{a02490}{shape}


\begin{DoxyCompactList}\small\item\em Namespace of shape accumulators. \item\end{DoxyCompactList}

\item 
namespace \hyperlink{a02492}{stat}


\begin{DoxyCompactList}\small\item\em Namespace of statistical accumulators. \item\end{DoxyCompactList}

\end{DoxyCompactItemize}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00056}{center}
\begin{DoxyCompactList}\small\item\em Mass center accumulator. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00057}{convolve}
\begin{DoxyCompactList}\small\item\em Generic convolution accumulator class. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00058}{count\_\-adjacent\_\-vertices}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00026}{Accumulator} class counting the number of vertices adjacent to a set of mln::p\_\-edges\_\-psite (i.e., a set of edges). \item\end{DoxyCompactList}\item 
struct \hyperlink{a00059}{count\_\-labels}
\begin{DoxyCompactList}\small\item\em Count the number of different labels in an image. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00060}{count\_\-value}
\begin{DoxyCompactList}\small\item\em Define an accumulator that counts the occurrence of a given value. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00061}{histo}
\begin{DoxyCompactList}\small\item\em Generic histogram class over a value set with type {\ttfamily V}. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00062}{label\_\-used}
\begin{DoxyCompactList}\small\item\em References all the labels used. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00067}{maj\_\-h}
\begin{DoxyCompactList}\small\item\em Compute the majority value. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00072}{max\_\-site}
\begin{DoxyCompactList}\small\item\em Define an accumulator that computes the first site with the maximum value in an image. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00106}{nil}
\begin{DoxyCompactList}\small\item\em Define an accumulator that does nothing. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00107}{p}
\begin{DoxyCompactList}\small\item\em Generic p of accumulators. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00108}{pair}
\begin{DoxyCompactList}\small\item\em Generic pair of accumulators. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00109}{rms}
\begin{DoxyCompactList}\small\item\em Generic root mean square accumulator class. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00128}{tuple}
\begin{DoxyCompactList}\small\item\em Generic tuple of accumulators. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00129}{val}
\begin{DoxyCompactList}\small\item\em Generic val of accumulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename A , typename I $>$ }\\A::result \hyperlink{a02475_abd6d1839a5f8290e8a0754c4e5dc609c}{compute} (const \hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Make an accumulator compute the pixels of the image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename Meta\_\-Accu , unsigned Dir, typename I , typename O $>$ }\\void \hyperlink{a02475_ad96bd5fbfcd57b7a4ecd66a5dd38d18c}{line} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const typename I::site \&p\_\-start, unsigned len, unsigned half\_\-length, \hyperlink{a00044}{Image}$<$ O $>$ \&output)
\item 
{\footnotesize template$<$typename A , typename I $>$ }\\\hyperlink{a02475_a38bcc01c7e450b50b61215e4779708b2}{mln\_\-meta\_\-accu\_\-result} (A, \hyperlink{a00408}{util::pix}$<$ I $>$) compute(const \hyperlink{a00052}{Meta\_\-Accumulator}$<$ A $>$ \&a
\begin{DoxyCompactList}\small\item\em Make an accumulator compute the pixels of the image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename I $>$ }\\void \hyperlink{a02475_a8105f541d4e30ff9ce45fd9356d82f4d}{take} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, \hyperlink{a00026}{Accumulator}$<$ A $>$ \&a)
\begin{DoxyCompactList}\small\item\em Make an accumulator take the pixels of the image {\ttfamily input}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of accumulators. 

\subsection{Function Documentation}
\hypertarget{a02475_abd6d1839a5f8290e8a0754c4e5dc609c}{
\index{mln::accu@{mln::accu}!compute@{compute}}
\index{compute@{compute}!mln::accu@{mln::accu}}
\subsubsection[{compute}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ A::result mln::accu::compute (
\begin{DoxyParamCaption}
\item[{const Accumulator$<$ A $>$ \&}]{ a, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/d70/a02475_abd6d1839a5f8290e8a0754c4e5dc609c}


Make an accumulator compute the pixels of the image {\ttfamily input}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em a}]An accumulator.\end{DoxyParams}
This routine runs: \par
 a.take(make::pix(input, p)); on all pixels on the images.

\begin{DoxyWarning}{Warning}
This routine does not perform a.init(). 
\end{DoxyWarning}


Definition at line 130 of file accu/compute.hh.

\hypertarget{a02475_ad96bd5fbfcd57b7a4ecd66a5dd38d18c}{
\index{mln::accu@{mln::accu}!line@{line}}
\index{line@{line}!mln::accu@{mln::accu}}
\subsubsection[{line}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Meta\_\-Accu , unsigned Dir, typename I , typename O $>$ void mln::accu::line (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const typename I::site \&}]{ p\_\-start, }
\item[{unsigned}]{ len, }
\item[{unsigned}]{ half\_\-length, }
\item[{Image$<$ O $>$ \&}]{ output}
\end{DoxyParamCaption}
)}}
\label{d2/d70/a02475_ad96bd5fbfcd57b7a4ecd66a5dd38d18c}
Line an accumulator onto the pixel values of the image {\ttfamily input}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em p\_\-start}]The starting site of the line. \item[\mbox{\tt[in]} {\em len}]The line length. \item[\mbox{\tt[in]} {\em half\_\-length}]The half length of the line. \item[\mbox{\tt[in,out]} {\em output}]The resulting image.\end{DoxyParams}
This routine runs: \par
 tmp = {\ttfamily a} \par
 tmp.init() \par
 \hyperlink{a02475_a8105f541d4e30ff9ce45fd9356d82f4d}{accu::take}({\ttfamily input}, tmp) \par
 return tmp.to\_\-result() \par
 

Definition at line 381 of file accu/line.hh.

\hypertarget{a02475_a38bcc01c7e450b50b61215e4779708b2}{
\index{mln::accu@{mln::accu}!mln\_\-meta\_\-accu\_\-result@{mln\_\-meta\_\-accu\_\-result}}
\index{mln\_\-meta\_\-accu\_\-result@{mln\_\-meta\_\-accu\_\-result}!mln::accu@{mln::accu}}
\subsubsection[{mln\_\-meta\_\-accu\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ mln::accu::mln\_\-meta\_\-accu\_\-result (
\begin{DoxyParamCaption}
\item[{A}]{, }
\item[{util::pix$<$ I $>$}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/d70/a02475_a38bcc01c7e450b50b61215e4779708b2}


Make an accumulator compute the pixels of the image {\ttfamily input}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em a}]A meta accumulator.\end{DoxyParams}
This routine runs: \par
 a.take(make::pix(input, p)); on all pixels on the images.

\begin{DoxyWarning}{Warning}
This routine does not perform a.init(). 
\end{DoxyWarning}
\hypertarget{a02475_a8105f541d4e30ff9ce45fd9356d82f4d}{
\index{mln::accu@{mln::accu}!take@{take}}
\index{take@{take}!mln::accu@{mln::accu}}
\subsubsection[{take}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ void mln::accu::take (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{Accumulator$<$ A $>$ \&}]{ a}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/d70/a02475_a8105f541d4e30ff9ce45fd9356d82f4d}


Make an accumulator take the pixels of the image {\ttfamily input}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in,out]} {\em a}]The accumulator.\end{DoxyParams}
This routine runs: \par
 for all p of {\ttfamily input}, {\ttfamily a.take}( pix({\ttfamily input}, p) ) \par


\begin{DoxyWarning}{Warning}
This routine does not perform a.init(). 
\end{DoxyWarning}


Definition at line 87 of file take.hh.

