\hypertarget{a02710}{
\section{mln::set Namespace Reference}
\label{d9/d6c/a02710}\index{mln::set@{mln::set}}
}


Namespace of image processing routines related to pixel sets.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename S $>$ }\\unsigned \hyperlink{a02710_a351a80b4a5add4e43735c6b8e0c6381c}{card} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&s)
\begin{DoxyCompactList}\small\item\em Compute the cardinality of the site set {\ttfamily s}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename S $>$ }\\A::result \hyperlink{a02710_a564396792b1e2c06380e3a453746f940}{compute} (const \hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&s)
\begin{DoxyCompactList}\small\item\em Compute an accumulator onto a site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename I $>$ }\\A::result \hyperlink{a02710_aee656d4eb06d2144496de0311904c47d}{compute\_\-with\_\-weights} (const \hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00044}{Image}$<$ I $>$ \&w)
\begin{DoxyCompactList}\small\item\em Compute an accumulator on a site set described by an image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename I , typename L $>$ }\\\hyperlink{a00027}{util::array}$<$ typename A::result $>$ \hyperlink{a02710_a30a928315a3f0ad72e3bbacf0e2f308b}{compute\_\-with\_\-weights} (const \hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00044}{Image}$<$ I $>$ \&w, const \hyperlink{a00044}{Image}$<$ L $>$ \&\hyperlink{a00427}{label}, const typename L::value \&nlabels)
\begin{DoxyCompactList}\small\item\em Compute an accumulator on every labeled sub-\/site-\/sets. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S $>$ }\\S::site \hyperlink{a02710_ab3d06f2ae7dd7a4c8878813fe8f317e0}{get} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&s, size\_\-t index)
\begin{DoxyCompactList}\small\item\em FIXME. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S $>$ }\\bool \hyperlink{a02710_a77d9ba8ca6941f216edec6bda09bd1ff}{has} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&s, const typename S::site \&e)
\begin{DoxyCompactList}\small\item\em FIXME. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename S $>$ }\\\hyperlink{a02710_abd23b23ca768c607e99e994ed0ffb928}{mln\_\-meta\_\-accu\_\-result} (A, typename S::site) compute(const \hyperlink{a00052}{Meta\_\-Accumulator}$<$ A $>$ \&a
\begin{DoxyCompactList}\small\item\em Compute an accumulator onto a site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename I $>$ }\\\hyperlink{a02710_a6a146b3ac23affc0d5f3b341465e5777}{mln\_\-meta\_\-accu\_\-result} (A, typename I::site) compute\_\-with\_\-weights(const \hyperlink{a00052}{Meta\_\-Accumulator}$<$ A $>$ \&a
\begin{DoxyCompactList}\small\item\em Compute an accumulator on a site set described by an image. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of image processing routines related to pixel sets. 

\subsection{Function Documentation}
\hypertarget{a02710_a351a80b4a5add4e43735c6b8e0c6381c}{
\index{mln::set@{mln::set}!card@{card}}
\index{card@{card}!mln::set@{mln::set}}
\subsubsection[{card}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ unsigned mln::set::card (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d6c/a02710_a351a80b4a5add4e43735c6b8e0c6381c}


Compute the cardinality of the site set {\ttfamily s}. 



Definition at line 134 of file set/card.hh.

\hypertarget{a02710_a564396792b1e2c06380e3a453746f940}{
\index{mln::set@{mln::set}!compute@{compute}}
\index{compute@{compute}!mln::set@{mln::set}}
\subsubsection[{compute}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename S $>$ A::result mln::set::compute (
\begin{DoxyParamCaption}
\item[{const Accumulator$<$ A $>$ \&}]{ a, }
\item[{const Site\_\-Set$<$ S $>$ \&}]{ s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d6c/a02710_a564396792b1e2c06380e3a453746f940}


Compute an accumulator onto a site set. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]An accumulator. \item[\mbox{\tt[in]} {\em s}]A site set. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result. 
\end{DoxyReturn}


Definition at line 112 of file set/compute.hh.



Referenced by mln::registration::icp().

\hypertarget{a02710_aee656d4eb06d2144496de0311904c47d}{
\index{mln::set@{mln::set}!compute\_\-with\_\-weights@{compute\_\-with\_\-weights}}
\index{compute\_\-with\_\-weights@{compute\_\-with\_\-weights}!mln::set@{mln::set}}
\subsubsection[{compute\_\-with\_\-weights}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ A::result mln::set::compute\_\-with\_\-weights (
\begin{DoxyParamCaption}
\item[{const Accumulator$<$ A $>$ \&}]{ a, }
\item[{const Image$<$ I $>$ \&}]{ w}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d6c/a02710_aee656d4eb06d2144496de0311904c47d}


Compute an accumulator on a site set described by an image. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]An accumulator. \item[\mbox{\tt[in]} {\em w}]An image of weights (a site -\/$>$ a weight). \end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result. 
\end{DoxyReturn}


Definition at line 217 of file compute\_\-with\_\-weights.hh.



Referenced by compute\_\-with\_\-weights().

\hypertarget{a02710_a30a928315a3f0ad72e3bbacf0e2f308b}{
\index{mln::set@{mln::set}!compute\_\-with\_\-weights@{compute\_\-with\_\-weights}}
\index{compute\_\-with\_\-weights@{compute\_\-with\_\-weights}!mln::set@{mln::set}}
\subsubsection[{compute\_\-with\_\-weights}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I , typename L $>$ {\bf util::array}$<$ typename A::result $>$ mln::set::compute\_\-with\_\-weights (
\begin{DoxyParamCaption}
\item[{const Accumulator$<$ A $>$ \&}]{ a, }
\item[{const Image$<$ I $>$ \&}]{ w, }
\item[{const Image$<$ L $>$ \&}]{ label, }
\item[{const typename L::value \&}]{ nlabels}
\end{DoxyParamCaption}
)}}
\label{d9/d6c/a02710_a30a928315a3f0ad72e3bbacf0e2f308b}


Compute an accumulator on every labeled sub-\/site-\/sets. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]An accumulator. \item[\mbox{\tt[in]} {\em w}]An image of weights (a site -\/$>$ a weight). \item[\mbox{\tt[in]} {\em label}]A label image. \item[\mbox{\tt[in]} {\em nlabels}]The number of labels in {\ttfamily label}.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An array of accumulator result. One per label. 
\end{DoxyReturn}


Definition at line 234 of file compute\_\-with\_\-weights.hh.



References compute\_\-with\_\-weights().

\hypertarget{a02710_ab3d06f2ae7dd7a4c8878813fe8f317e0}{
\index{mln::set@{mln::set}!get@{get}}
\index{get@{get}!mln::set@{mln::set}}
\subsubsection[{get}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ S::site mln::set::get (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ s, }
\item[{size\_\-t}]{ index}
\end{DoxyParamCaption}
)}}
\label{d9/d6c/a02710_ab3d06f2ae7dd7a4c8878813fe8f317e0}


FIXME. 



Definition at line 56 of file set/get.hh.

\hypertarget{a02710_a77d9ba8ca6941f216edec6bda09bd1ff}{
\index{mln::set@{mln::set}!has@{has}}
\index{has@{has}!mln::set@{mln::set}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ bool mln::set::has (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ s, }
\item[{const typename S::site \&}]{ e}
\end{DoxyParamCaption}
)}}
\label{d9/d6c/a02710_a77d9ba8ca6941f216edec6bda09bd1ff}


FIXME. 



Definition at line 56 of file set/has.hh.

\hypertarget{a02710_abd23b23ca768c607e99e994ed0ffb928}{
\index{mln::set@{mln::set}!mln\_\-meta\_\-accu\_\-result@{mln\_\-meta\_\-accu\_\-result}}
\index{mln\_\-meta\_\-accu\_\-result@{mln\_\-meta\_\-accu\_\-result}!mln::set@{mln::set}}
\subsubsection[{mln\_\-meta\_\-accu\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename S $>$ mln::set::mln\_\-meta\_\-accu\_\-result (
\begin{DoxyParamCaption}
\item[{A}]{, }
\item[{typename S::site}]{}
\end{DoxyParamCaption}
) const}}
\label{d9/d6c/a02710_abd23b23ca768c607e99e994ed0ffb928}


Compute an accumulator onto a site set. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]A meta-\/accumulator. \item[\mbox{\tt[in]} {\em s}]A site set. \end{DoxyParams}
\hypertarget{a02710_a6a146b3ac23affc0d5f3b341465e5777}{
\index{mln::set@{mln::set}!mln\_\-meta\_\-accu\_\-result@{mln\_\-meta\_\-accu\_\-result}}
\index{mln\_\-meta\_\-accu\_\-result@{mln\_\-meta\_\-accu\_\-result}!mln::set@{mln::set}}
\subsubsection[{mln\_\-meta\_\-accu\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ mln::set::mln\_\-meta\_\-accu\_\-result (
\begin{DoxyParamCaption}
\item[{A}]{, }
\item[{typename I::site}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d6c/a02710_a6a146b3ac23affc0d5f3b341465e5777}


Compute an accumulator on a site set described by an image. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]A meta-\/accumulator. \item[\mbox{\tt[in]} {\em w}]An image of weights (a site -\/$>$ a weight). \end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result. 
\end{DoxyReturn}
