\hypertarget{a02530}{
\section{mln::data::impl::generic Namespace Reference}
\label{d3/d41/a02530}\index{mln::data::impl::generic@{mln::data::impl::generic}}
}


Generic implementation namespace of data namespace.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename J $>$ }\\void \hyperlink{a02530_a4a3a72c81817ea36624fb01401c96ece}{fill\_\-with\_\-image} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima\_\-, const \hyperlink{a00044}{Image}$<$ J $>$ \&data\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename V $>$ }\\void \hyperlink{a02530_af3e97bbaf52c3ce9cbc59fcf9662c43f}{fill\_\-with\_\-value} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima\_\-, const V \&val)
\begin{DoxyCompactList}\small\item\em Fill the whole image {\ttfamily ima} with the single value {\ttfamily v}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J $>$ }\\void \hyperlink{a02530_a40cf91f5ddd7f5a6587aa442225049a6}{paste} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input\_\-, \hyperlink{a00044}{Image}$<$ J $>$ \&output\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation of \hyperlink{a00651_ac3cde143ea240f062f5653133b032068}{data::paste}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename F $>$ }\\mln::trait::ch\_\-value$<$ I, typename F::result $>$::ret \hyperlink{a02530_a70d26887a964ed00257110bd49ae685b}{transform} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input\_\-, const \hyperlink{a00034}{Function\_\-v2v}$<$ F $>$ \&f\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation of \hyperlink{a00651_ad6952babc236615e0df1254b218aefbe}{data::transform}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I1 , typename I2 , typename F $>$ }\\mln::trait::ch\_\-value$<$ I1, typename F::result $>$::ret \hyperlink{a02530_acddcbead80082465058d7fc0ef2db664}{transform} (const \hyperlink{a00044}{Image}$<$ I1 $>$ \&input1\_\-, const \hyperlink{a00044}{Image}$<$ I2 $>$ \&input2\_\-, const \hyperlink{a00036}{Function\_\-vv2v}$<$ F $>$ \&f\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation of \hyperlink{a00651_ad6952babc236615e0df1254b218aefbe}{data::transform}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I1 , typename I2 , typename F $>$ }\\void \hyperlink{a02530_a2c4ab00f8ef282686f7070ac243a013f}{transform\_\-inplace} (\hyperlink{a00044}{Image}$<$ I1 $>$ \&ima\_\-, const \hyperlink{a00044}{Image}$<$ I2 $>$ \&aux\_\-, const \hyperlink{a00036}{Function\_\-vv2v}$<$ F $>$ \&f\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation of transform\_\-inplace. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename F $>$ }\\void \hyperlink{a02530_aa67a9c99ee5392947e822d76f46d985a}{transform\_\-inplace} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima\_\-, const \hyperlink{a00034}{Function\_\-v2v}$<$ F $>$ \&f\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation of transform\_\-inplace. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename I $>$ }\\A::result \hyperlink{a02530_aaed7f82c2126a72b82ff849bf831e489}{update} (\hyperlink{a00026}{Accumulator}$<$ A $>$ \&a\_\-, const \hyperlink{a00044}{Image}$<$ I $>$ \&input\_\-)
\begin{DoxyCompactList}\small\item\em Generic implementation of \hyperlink{a00651_a8816158c44f6fc968b6cef0368c0110d}{data::update}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Generic implementation namespace of data namespace. 

\subsection{Function Documentation}
\hypertarget{a02530_a4a3a72c81817ea36624fb01401c96ece}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!fill\_\-with\_\-image@{fill\_\-with\_\-image}}
\index{fill\_\-with\_\-image@{fill\_\-with\_\-image}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{fill\_\-with\_\-image}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ void mln::data::impl::generic::fill\_\-with\_\-image (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima\_\-, }
\item[{const Image$<$ J $>$ \&}]{ data\_\-}
\end{DoxyParamCaption}
)}}
\label{d3/d41/a02530_a4a3a72c81817ea36624fb01401c96ece}


Generic implementation. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima\_\-}]The image to be filled. \item[\mbox{\tt[in]} {\em data\_\-}]The image. \end{DoxyParams}


Definition at line 100 of file fill\_\-with\_\-image.hh.

\hypertarget{a02530_af3e97bbaf52c3ce9cbc59fcf9662c43f}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!fill\_\-with\_\-value@{fill\_\-with\_\-value}}
\index{fill\_\-with\_\-value@{fill\_\-with\_\-value}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{fill\_\-with\_\-value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename V $>$ void mln::data::impl::generic::fill\_\-with\_\-value (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima\_\-, }
\item[{const V \&}]{ val}
\end{DoxyParamCaption}
)}}
\label{d3/d41/a02530_af3e97bbaf52c3ce9cbc59fcf9662c43f}


Fill the whole image {\ttfamily ima} with the single value {\ttfamily v}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima\_\-}]The image to be filled. \item[\mbox{\tt[in]} {\em val}]The value to assign to all sites.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 
\end{DoxyPrecond}


Definition at line 103 of file fill\_\-with\_\-value.hh.

\hypertarget{a02530_a40cf91f5ddd7f5a6587aa442225049a6}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!paste@{paste}}
\index{paste@{paste}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{paste}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ void mln::data::impl::generic::paste (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input\_\-, }
\item[{Image$<$ J $>$ \&}]{ output\_\-}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d3/d41/a02530_a40cf91f5ddd7f5a6587aa442225049a6}


Generic implementation of \hyperlink{a00651_ac3cde143ea240f062f5653133b032068}{data::paste}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input\_\-}]The input image providing pixels values. \item[\mbox{\tt[in,out]} {\em output\_\-}]The image in which values are assigned. \end{DoxyParams}


Definition at line 111 of file paste.hh.

\hypertarget{a02530_a70d26887a964ed00257110bd49ae685b}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!transform@{transform}}
\index{transform@{transform}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{transform}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ mln::trait::ch\_\-value$<$ I , typename F ::result $>$::ret mln::data::impl::generic::transform (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input\_\-, }
\item[{const Function\_\-v2v$<$ F $>$ \&}]{ f\_\-}
\end{DoxyParamCaption}
)}}
\label{d3/d41/a02530_a70d26887a964ed00257110bd49ae685b}


Generic implementation of \hyperlink{a00651_ad6952babc236615e0df1254b218aefbe}{data::transform}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input\_\-}]The input image. \item[\mbox{\tt[in]} {\em f\_\-}]The function. \end{DoxyParams}


Definition at line 137 of file data/transform.hh.



References mln::initialize().

\hypertarget{a02530_acddcbead80082465058d7fc0ef2db664}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!transform@{transform}}
\index{transform@{transform}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{transform}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I1 , typename I2 , typename F $>$ mln::trait::ch\_\-value$<$ I1 , typename F ::result $>$::ret mln::data::impl::generic::transform (
\begin{DoxyParamCaption}
\item[{const Image$<$ I1 $>$ \&}]{ input1\_\-, }
\item[{const Image$<$ I2 $>$ \&}]{ input2\_\-, }
\item[{const Function\_\-vv2v$<$ F $>$ \&}]{ f\_\-}
\end{DoxyParamCaption}
)}}
\label{d3/d41/a02530_acddcbead80082465058d7fc0ef2db664}


Generic implementation of \hyperlink{a00651_ad6952babc236615e0df1254b218aefbe}{data::transform}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input1\_\-}]The 1st input image. \item[\mbox{\tt[in]} {\em input2\_\-}]The 2nd input image. \item[\mbox{\tt[in]} {\em f\_\-}]The function. \end{DoxyParams}


Definition at line 166 of file data/transform.hh.



References mln::initialize().

\hypertarget{a02530_a2c4ab00f8ef282686f7070ac243a013f}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!transform\_\-inplace@{transform\_\-inplace}}
\index{transform\_\-inplace@{transform\_\-inplace}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{transform\_\-inplace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I1 , typename I2 , typename F $>$ void mln::data::impl::generic::transform\_\-inplace (
\begin{DoxyParamCaption}
\item[{Image$<$ I1 $>$ \&}]{ ima\_\-, }
\item[{const Image$<$ I2 $>$ \&}]{ aux\_\-, }
\item[{const Function\_\-vv2v$<$ F $>$ \&}]{ f\_\-}
\end{DoxyParamCaption}
)}}
\label{d3/d41/a02530_a2c4ab00f8ef282686f7070ac243a013f}


Generic implementation of transform\_\-inplace. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em ima\_\-}]The image to be transformed. \item[\mbox{\tt[in]} {\em aux\_\-}]The auxiliary image. \item[\mbox{\tt[in]} {\em f\_\-}]The function. \end{DoxyParams}


Definition at line 176 of file transform\_\-inplace.hh.

\hypertarget{a02530_aa67a9c99ee5392947e822d76f46d985a}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!transform\_\-inplace@{transform\_\-inplace}}
\index{transform\_\-inplace@{transform\_\-inplace}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{transform\_\-inplace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ void mln::data::impl::generic::transform\_\-inplace (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima\_\-, }
\item[{const Function\_\-v2v$<$ F $>$ \&}]{ f\_\-}
\end{DoxyParamCaption}
)}}
\label{d3/d41/a02530_aa67a9c99ee5392947e822d76f46d985a}


Generic implementation of transform\_\-inplace. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima\_\-}]The image to be transformed. \item[\mbox{\tt[in]} {\em f\_\-}]The function. \end{DoxyParams}


Definition at line 149 of file transform\_\-inplace.hh.

\hypertarget{a02530_aaed7f82c2126a72b82ff849bf831e489}{
\index{mln::data::impl::generic@{mln::data::impl::generic}!update@{update}}
\index{update@{update}!mln::data::impl::generic@{mln::data::impl::generic}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ A ::result mln::data::impl::generic::update (
\begin{DoxyParamCaption}
\item[{Accumulator$<$ A $>$ \&}]{ a\_\-, }
\item[{const Image$<$ I $>$ \&}]{ input\_\-}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d3/d41/a02530_aaed7f82c2126a72b82ff849bf831e489}


Generic implementation of \hyperlink{a00651_a8816158c44f6fc968b6cef0368c0110d}{data::update}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a\_\-}]The accumulator. \item[\mbox{\tt[in]} {\em input\_\-}]The input image.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result. 
\end{DoxyReturn}


Definition at line 100 of file update.hh.

