\hypertarget{a00072}{
\section{mln::accu::max\_\-site$<$ I $>$ Struct Template Reference}
\label{d6/d2c/a00072}\index{mln::accu::max\_\-site@{mln::accu::max\_\-site}}
}


Define an accumulator that computes the first site with the maximum value in an image.  




{\ttfamily \#include $<$max\_\-site.hh$>$}



Inherits base$<$ I::psite, max\_\-site$<$ I $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00072_a7a74535bb14004fd63247f490e4e4b59}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Check whether this accu is able to return a result. \item\end{DoxyCompactList}\item 
void \hyperlink{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{take\_\-as\_\-init} (const T \&t)
\begin{DoxyCompactList}\small\item\em Take as initialization the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
void \hyperlink{a00026_a138e094daa1a85f345bbdfd852c9fc67}{take\_\-n\_\-times} (unsigned n, const T \&t)
\begin{DoxyCompactList}\small\item\em Take {\ttfamily n} times the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
I::psite \hyperlink{a00072_a1ab60547e748ff358c97a93f18cb759e}{to\_\-result} () const 
\begin{DoxyCompactList}\small\item\em Get the value of the accumulator. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00072_a275f99bbbf537c400131a508bc001de3}{init} ()
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename I$>$ struct mln::accu::max\_\-site$<$ I $>$}

Define an accumulator that computes the first site with the maximum value in an image. 

Definition at line 53 of file max\_\-site.hh.



\subsection{Member Function Documentation}
\hypertarget{a00072_a275f99bbbf537c400131a508bc001de3}{
\index{mln::accu::max\_\-site@{mln::accu::max\_\-site}!init@{init}}
\index{init@{init}!mln::accu::max_site@{mln::accu::max\_\-site}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void {\bf mln::accu::max\_\-site}$<$ I $>$::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/d2c/a00072_a275f99bbbf537c400131a508bc001de3}


Manipulators. 



Definition at line 114 of file max\_\-site.hh.

\hypertarget{a00072_a7a74535bb14004fd63247f490e4e4b59}{
\index{mln::accu::max\_\-site@{mln::accu::max\_\-site}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::max_site@{mln::accu::max\_\-site}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ bool {\bf mln::accu::max\_\-site}$<$ I $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/d2c/a00072_a7a74535bb14004fd63247f490e4e4b59}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 174 of file max\_\-site.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::max\_\-site@{mln::accu::max\_\-site}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::max_site@{mln::accu::max\_\-site}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf max\_\-site}$<$ I $>$  $>$::take\_\-as\_\-init (
\begin{DoxyParamCaption}
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a745794a4ef16926d3c09ebbaa8b6b557}


Take as initialization the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). \hypertarget{a00026_a138e094daa1a85f345bbdfd852c9fc67}{
\index{mln::accu::max\_\-site@{mln::accu::max\_\-site}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::max_site@{mln::accu::max\_\-site}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf max\_\-site}$<$ I $>$  $>$::take\_\-n\_\-times (
\begin{DoxyParamCaption}
\item[{unsigned}]{ n, }
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a138e094daa1a85f345bbdfd852c9fc67}


Take {\ttfamily n} times the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). \hypertarget{a00072_a1ab60547e748ff358c97a93f18cb759e}{
\index{mln::accu::max\_\-site@{mln::accu::max\_\-site}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::max_site@{mln::accu::max\_\-site}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ I::psite {\bf mln::accu::max\_\-site}$<$ I $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/d2c/a00072_a1ab60547e748ff358c97a93f18cb759e}


Get the value of the accumulator. 



Definition at line 150 of file max\_\-site.hh.

