\hypertarget{a00651}{
\section{mln::data Namespace Reference}
\label{de/d33/a00651}\index{mln::data@{mln::data}}
}


Namespace of image processing routines related to pixel data.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02527}{approx}


\begin{DoxyCompactList}\small\item\em Namespace of image processing routines related to pixel levels with approximation. \item\end{DoxyCompactList}

\item 
namespace \hyperlink{a02529}{impl}


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

\item 
namespace \hyperlink{a02532}{naive}


\begin{DoxyCompactList}\small\item\em Namespace of image processing routines related to pixel levels with naive approach. \item\end{DoxyCompactList}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename O $>$ }\\void \hyperlink{a00651_a5bafaae27c73b1992fad4fa83b022487}{abs} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, \hyperlink{a00044}{Image}$<$ O $>$ \&output)
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a00651_ae8b0266931fb76c87b0811a704ca924b}{abs\_\-inplace} (\hyperlink{a00044}{Image}$<$ I $>$ \&input)
\item 
{\footnotesize template$<$typename I , typename F $>$ }\\void \hyperlink{a00651_a31ca5d074db0e88f412bd0a8492e91e7}{apply} (\hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00034}{Function\_\-v2v}$<$ F $>$ \&f)
\item 
{\footnotesize template$<$typename A , typename I $>$ }\\A::result \hyperlink{a00651_af3d853873f83deb107d9066307d4478c}{compute} (const \hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Compute an accumulator onto the pixel values of the image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename A , typename I $>$ }\\A::result \hyperlink{a00651_a387c13b8734243690d71ba028bd2bc02}{compute} (\hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Compute an accumulator onto the pixel values of the image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename V , typename I $>$ }\\mln::trait::ch\_\-value$<$ I, V $>$::ret \hyperlink{a00651_a13e81e5838ec620d903f1771419d9270}{convert} (const V \&v, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Convert the image {\ttfamily input} by changing the value type. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename W , typename O $>$ }\\void \hyperlink{a00651_a5ce9ce80862767de35bcbd7b66078529}{fast\_\-median} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00454}{Window}$<$ W $>$ \&win, \hyperlink{a00044}{Image}$<$ O $>$ \&output)
\item 
{\footnotesize template$<$typename I , typename D $>$ }\\void \hyperlink{a00651_a0c4ff434befc8e7287f29aa2487cb1bb}{fill} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const D \&data)
\item 
{\footnotesize template$<$typename I , typename J $>$ }\\void \hyperlink{a00651_a2fa8811f57dcff6fc640bba54a2b38ca}{fill\_\-with\_\-image} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00044}{Image}$<$ J $>$ \&data)
\begin{DoxyCompactList}\small\item\em Fill the image {\ttfamily ima} with the values of the image {\ttfamily data}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename W $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a00651_a29189d281a1268d3502a1ffcf7584c4f}{median} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00454}{Window}$<$ W $>$ \&win)
\item 
{\footnotesize template$<$typename A , typename I $>$ }\\\hyperlink{a00651_a9504b6f91bad0d9cf4b3f825892d12c1}{mln\_\-meta\_\-accu\_\-result} (A, typename I::value) compute(const \hyperlink{a00052}{Meta\_\-Accumulator}$<$ A $>$ \&a
\begin{DoxyCompactList}\small\item\em Compute an accumulator onto the pixel values of the image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J $>$ }\\void \hyperlink{a00651_ac3cde143ea240f062f5653133b032068}{paste} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, \hyperlink{a00044}{Image}$<$ J $>$ \&output)
\begin{DoxyCompactList}\small\item\em Paste the contents of image {\ttfamily input} into the image {\ttfamily output}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J $>$ }\\void \hyperlink{a00651_afff8d1cd1b0c43ff67a35d7e3f83e334}{paste\_\-without\_\-localization} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, \hyperlink{a00044}{Image}$<$ J $>$ \&output)
\begin{DoxyCompactList}\small\item\em Paste the contents of image {\ttfamily input} into the image {\ttfamily output} without taking into account the localization of sites. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a00651_ab8dbc05da86d47f7a6aa6c622e1363b4}{replace} (\hyperlink{a00044}{Image}$<$ I $>$ \&input, const typename I::value \&old\_\-value, const typename I::value \&new\_\-value)
\item 
{\footnotesize template$<$typename I , typename V $>$ }\\mln::trait::ch\_\-value$<$ I, V $>$::ret \hyperlink{a00651_ad92f39c19862092d90d0a7e4ff8b87bf}{saturate} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const V \&min, const V \&max)
\item 
{\footnotesize template$<$typename V , typename I $>$ }\\mln::trait::ch\_\-value$<$ I, V $>$::ret \hyperlink{a00651_a39ddb81969bd6371ad014f12249ca35c}{saturate} (V v, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a00651_a269009e61be96a6be22f4906908ed912}{saturate\_\-inplace} (\hyperlink{a00044}{Image}$<$ I $>$ \&input, const typename I::value \&min, const typename I::value \&max)
\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00027}{util::array}$<$ unsigned $>$ \hyperlink{a00651_ac6af73b9d562fdd377c28441f4f6add6}{sort\_\-offsets\_\-increasing} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Sort pixel offsets of the image {\ttfamily input} wrt increasing pixel values. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00300}{p\_\-array}$<$ typename I::psite $>$ \hyperlink{a00651_af4e8d726abd6d3b9a16c5a63d4fbcb43}{sort\_\-psites\_\-decreasing} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00300}{p\_\-array}$<$ typename I::psite $>$ \hyperlink{a00651_a97a4002c55e149da9ca3868f73166397}{sort\_\-psites\_\-increasing} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\item 
{\footnotesize template$<$typename V , typename I $>$ }\\mln::trait::ch\_\-value$<$ I, V $>$::ret \hyperlink{a00651_a5135255ba4b69c9a12ce5500f42f0afc}{stretch} (const V \&v, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\item 
{\footnotesize template$<$typename I , typename O $>$ }\\void \hyperlink{a00651_a8499a9f87640c6becf3507522c5b03ba}{to\_\-enc} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, \hyperlink{a00044}{Image}$<$ O $>$ \&output)
\item 
{\footnotesize template$<$typename I1 , typename I2 , typename F $>$ }\\mln::trait::ch\_\-value$<$ I1, typename F::result $>$::ret \hyperlink{a00651_a677ddcf739265ecc01a263c43871162d}{transform} (const \hyperlink{a00044}{Image}$<$ I1 $>$ \&input1, const \hyperlink{a00044}{Image}$<$ I2 $>$ \&input2, const \hyperlink{a00036}{Function\_\-vv2v}$<$ F $>$ \&f)
\item 
{\footnotesize template$<$typename I , typename F $>$ }\\mln::trait::ch\_\-value$<$ I, typename F::result $>$::ret \hyperlink{a00651_ad6952babc236615e0df1254b218aefbe}{transform} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00034}{Function\_\-v2v}$<$ F $>$ \&f)
\item 
{\footnotesize template$<$typename I1 , typename I2 , typename F $>$ }\\void \hyperlink{a00651_a2b78ca897e9d75834b4000d3b7164a82}{transform\_\-inplace} (\hyperlink{a00044}{Image}$<$ I1 $>$ \&ima, const \hyperlink{a00044}{Image}$<$ I2 $>$ \&aux, const \hyperlink{a00036}{Function\_\-vv2v}$<$ F $>$ \&f)
\item 
{\footnotesize template$<$typename I , typename F $>$ }\\void \hyperlink{a00651_a045b43636b8c1623790e5a203558dddf}{transform\_\-inplace} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00034}{Function\_\-v2v}$<$ F $>$ \&f)
\item 
{\footnotesize template$<$typename A , typename I $>$ }\\A::result \hyperlink{a00651_a8816158c44f6fc968b6cef0368c0110d}{update} (\hyperlink{a00026}{Accumulator}$<$ A $>$ \&a, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\item 
{\footnotesize template$<$typename V , typename I $>$ }\\mln::trait::ch\_\-value$<$ I, V $>$::ret \hyperlink{a00651_a549afda9fd67b519cea1af14b33ca56f}{wrap} (const V \&v, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Routine to wrap values such as 0 -\/$>$ 0 and \mbox{[}1, lmax\mbox{]} maps to \mbox{[}1, Lmax\mbox{]} (using modulus). \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename V $>$ }\\void \hyperlink{a00651_a8c8a51080e0ae8cc5d3ea224abfdc1d8}{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}\end{DoxyCompactItemize}
\end{Indent}


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

\subsection{Function Documentation}
\hypertarget{a00651_a5bafaae27c73b1992fad4fa83b022487}{
\index{mln::data@{mln::data}!abs@{abs}}
\index{abs@{abs}!mln::data@{mln::data}}
\subsubsection[{abs}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename O $>$ void mln::data::abs (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{Image$<$ O $>$ \&}]{ output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a5bafaae27c73b1992fad4fa83b022487}
Apply the absolute value (abs) function to image pixel values.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[out]} {\em output}]The output image. \end{DoxyParams}


Definition at line 68 of file data/abs.hh.



References transform().

\hypertarget{a00651_ae8b0266931fb76c87b0811a704ca924b}{
\index{mln::data@{mln::data}!abs\_\-inplace@{abs\_\-inplace}}
\index{abs\_\-inplace@{abs\_\-inplace}!mln::data@{mln::data}}
\subsubsection[{abs\_\-inplace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::data::abs\_\-inplace (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_ae8b0266931fb76c87b0811a704ca924b}
Apply the absolute value (abs) function to image pixel values.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em input}]The input image. \end{DoxyParams}


Definition at line 80 of file data/abs.hh.



References apply().

\hypertarget{a00651_a31ca5d074db0e88f412bd0a8492e91e7}{
\index{mln::data@{mln::data}!apply@{apply}}
\index{apply@{apply}!mln::data@{mln::data}}
\subsubsection[{apply}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ void mln::data::apply (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ input, }
\item[{const Function\_\-v2v$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a31ca5d074db0e88f412bd0a8492e91e7}
Apply a function-\/object to the image {\ttfamily input}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em f}]The function-\/object.\end{DoxyParams}
This routine runs: \par
 for all p of {\ttfamily input}, {\ttfamily input(p)} = {\ttfamily f}( {\ttfamily input(p)} ) \par


This routine is equivalent to data::tranform(input, f, input) but it is faster since a single iterator is required.

Definition at line 95 of file apply.hh.



Referenced by abs\_\-inplace(), and saturate\_\-inplace().

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


Compute an accumulator onto the pixel values of the image {\ttfamily input}. 

Be ware that the given accumulator won't be modified and won't store any result.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]An accumulator. \item[\mbox{\tt[in]} {\em input}]The input image. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result.
\end{DoxyReturn}
It fully relies on \hyperlink{a00651_a8816158c44f6fc968b6cef0368c0110d}{data::update}. 

Definition at line 93 of file data/compute.hh.



Referenced by mln::labeled\_\-image$<$ I $>$::labeled\_\-image(), mln::estim::mean(), mln::estim::min\_\-max(), and mln::estim::sum().

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


Compute an accumulator onto the pixel values of the image {\ttfamily input}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em a}]An accumulator. \item[\mbox{\tt[in]} {\em input}]The input image. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result.
\end{DoxyReturn}
It fully relies on \hyperlink{a00651_a8816158c44f6fc968b6cef0368c0110d}{data::update}. 

Definition at line 104 of file data/compute.hh.

\hypertarget{a00651_a13e81e5838ec620d903f1771419d9270}{
\index{mln::data@{mln::data}!convert@{convert}}
\index{convert@{convert}!mln::data@{mln::data}}
\subsubsection[{convert}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V , typename I $>$ mln::trait::ch\_\-value$<$ I, V $>$::ret mln::data::convert (
\begin{DoxyParamCaption}
\item[{const V \&}]{ v, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a13e81e5838ec620d903f1771419d9270}


Convert the image {\ttfamily input} by changing the value type. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em v}]A value of the destination type. \item[\mbox{\tt[in]} {\em input}]The input image. \end{DoxyParams}


Definition at line 154 of file mln/data/convert.hh.



Referenced by mln::morpho::watershed::superpose(), and mln::debug::superpose().

\hypertarget{a00651_a5ce9ce80862767de35bcbd7b66078529}{
\index{mln::data@{mln::data}!fast\_\-median@{fast\_\-median}}
\index{fast\_\-median@{fast\_\-median}!mln::data@{mln::data}}
\subsubsection[{fast\_\-median}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename W , typename O $>$ void mln::data::fast\_\-median (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Window$<$ W $>$ \&}]{ win, }
\item[{Image$<$ O $>$ \&}]{ output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a5ce9ce80862767de35bcbd7b66078529}
Compute in {\ttfamily output} the median filter of image {\ttfamily input} by the window {\ttfamily win}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The image to be filtered. \item[\mbox{\tt[in]} {\em win}]The window. \item[\mbox{\tt[in,out]} {\em output}]The output image.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily input} and {\ttfamily output} have to be initialized. 
\end{DoxyPrecond}


Definition at line 167 of file fast\_\-median.hh.

\hypertarget{a00651_a0c4ff434befc8e7287f29aa2487cb1bb}{
\index{mln::data@{mln::data}!fill@{fill}}
\index{fill@{fill}!mln::data@{mln::data}}
\subsubsection[{fill}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename D $>$ void mln::data::fill (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const D \&}]{ data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a0c4ff434befc8e7287f29aa2487cb1bb}
Fill the whole image {\ttfamily ima} with the data provided by {\ttfamily aux}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be filled. \item[\mbox{\tt[in]} {\em data}]The auxiliary data to fill the image {\ttfamily ima}.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 
\end{DoxyPrecond}


Definition at line 138 of file data/fill.hh.



Referenced by mln::draw::box\_\-plain(), mln::draw::dashed\_\-line(), mln::topo::detach(), mln::util::display\_\-branch(), mln::transform::distance\_\-and\_\-closest\_\-point\_\-geodesic(), mln::duplicate(), mln::make::edge\_\-image(), mln::morpho::tree::filter::filter(), mln::transform::hough(), mln::registration::icp(), mln::accu::stat::histo3d\_\-rgb$<$ V $>$::init(), mln::graph::labeling(), mln::morpho::laplacian(), mln::make\_\-debug\_\-graph\_\-image(), mln::morpho::tree::filter::max(), mln::geom::mesh\_\-corner\_\-point\_\-area(), mln::geom::mesh\_\-normal(), mln::morpho::meyer\_\-wst(), mln::morpho::tree::filter::min(), mln::debug::mosaic(), mln::debug::slices\_\-2d(), mln::morpho::watershed::superpose(), mln::debug::superpose(), mln::morpho::watershed::topological(), and mln::geom::translate().

\hypertarget{a00651_a2fa8811f57dcff6fc640bba54a2b38ca}{
\index{mln::data@{mln::data}!fill\_\-with\_\-image@{fill\_\-with\_\-image}}
\index{fill\_\-with\_\-image@{fill\_\-with\_\-image}!mln::data@{mln::data}}
\subsubsection[{fill\_\-with\_\-image}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ void mln::data::fill\_\-with\_\-image (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const Image$<$ J $>$ \&}]{ data}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a2fa8811f57dcff6fc640bba54a2b38ca}


Fill the image {\ttfamily ima} with the values of the image {\ttfamily data}. 


\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}
\begin{DoxyWarning}{Warning}
The definition domain of {\ttfamily ima} has to be included in the one of {\ttfamily data}.
\end{DoxyWarning}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima.domain} $<$= {\ttfamily data.domain}. 
\end{DoxyPrecond}


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

\hypertarget{a00651_a8c8a51080e0ae8cc5d3ea224abfdc1d8}{
\index{mln::data@{mln::data}!fill\_\-with\_\-value@{fill\_\-with\_\-value}}
\index{fill\_\-with\_\-value@{fill\_\-with\_\-value}!mln::data@{mln::data}}
\subsubsection[{fill\_\-with\_\-value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename V $>$ void mln::data::fill\_\-with\_\-value (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const V \&}]{ val}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a8c8a51080e0ae8cc5d3ea224abfdc1d8}


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 130 of file fill\_\-with\_\-value.hh.



Referenced by mln::p\_\-image$<$ I $>$::clear().

\hypertarget{a00651_a29189d281a1268d3502a1ffcf7584c4f}{
\index{mln::data@{mln::data}!median@{median}}
\index{median@{median}!mln::data@{mln::data}}
\subsubsection[{median}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename W $>$ mln::trait::concrete$<$ I $>$::ret mln::data::median (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Window$<$ W $>$ \&}]{ win}
\end{DoxyParamCaption}
)}}
\label{de/d33/a00651_a29189d281a1268d3502a1ffcf7584c4f}
Compute in {\ttfamily output} the median filter of image {\ttfamily input} by the window {\ttfamily win}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The image to be filtered. \item[\mbox{\tt[in]} {\em win}]The window.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily input} have to be initialized. 
\end{DoxyPrecond}


Definition at line 270 of file median.hh.

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


Compute an accumulator onto the pixel values of the image {\ttfamily input}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em a}]A meta-\/accumulator. \item[\mbox{\tt[in]} {\em input}]The input image. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
The accumulator result. 
\end{DoxyReturn}
\hypertarget{a00651_ac3cde143ea240f062f5653133b032068}{
\index{mln::data@{mln::data}!paste@{paste}}
\index{paste@{paste}!mln::data@{mln::data}}
\subsubsection[{paste}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ void mln::data::paste (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{Image$<$ J $>$ \&}]{ output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_ac3cde143ea240f062f5653133b032068}


Paste the contents of image {\ttfamily input} into the image {\ttfamily output}. 


\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}
This routine runs: \par
 for all p of {\ttfamily input}, {\ttfamily output(p)} = {\ttfamily input(p)}.

\begin{DoxyWarning}{Warning}
The definition domain of {\ttfamily input} has to be included in the one of {\ttfamily output}; so using \hyperlink{a00341}{mln::safe\_\-image} does not make pasting outside the output domain work.
\end{DoxyWarning}
\begin{DoxyPrecond}{Precondition}
{\ttfamily input.domain} $<$= {\ttfamily output.domain} 
\end{DoxyPrecond}


Definition at line 137 of file paste.hh.



Referenced by mln::make::image3d(), mln::draw::line(), mln::debug::mosaic(), mln::geom::rotate(), mln::debug::slices\_\-2d(), and mln::labeling::superpose().

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


Paste the contents of image {\ttfamily input} into the image {\ttfamily output} without taking into account the localization of sites. 


\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 349 of file paste\_\-without\_\-localization.hh.

\hypertarget{a00651_ab8dbc05da86d47f7a6aa6c622e1363b4}{
\index{mln::data@{mln::data}!replace@{replace}}
\index{replace@{replace}!mln::data@{mln::data}}
\subsubsection[{replace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::data::replace (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ input, }
\item[{const typename I::value \&}]{ old\_\-value, }
\item[{const typename I::value \&}]{ new\_\-value}
\end{DoxyParamCaption}
)}}
\label{de/d33/a00651_ab8dbc05da86d47f7a6aa6c622e1363b4}
Replace {\ttfamily old\_\-value} by {\ttfamily new\_\-value} in the image {\ttfamily input} 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em old\_\-value}]The value to be replaced... \item[\mbox{\tt[in]} {\em new\_\-value}]...by this one. \end{DoxyParams}


Definition at line 88 of file replace.hh.

\hypertarget{a00651_a39ddb81969bd6371ad014f12249ca35c}{
\index{mln::data@{mln::data}!saturate@{saturate}}
\index{saturate@{saturate}!mln::data@{mln::data}}
\subsubsection[{saturate}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V , typename I $>$ mln::trait::ch\_\-value$<$ I, V $>$::ret mln::data::saturate (
\begin{DoxyParamCaption}
\item[{V}]{ v, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a39ddb81969bd6371ad014f12249ca35c}
Apply the saturate function to image pixel values.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em v}]A value of the output type. \item[\mbox{\tt[in]} {\em input}]The input image.\end{DoxyParams}
The saturation is based on the min and max values of the output value type. This assumes that the range of values in the input image is larger than the one of the output image. 

Definition at line 87 of file data/saturate.hh.



References transform().

\hypertarget{a00651_ad92f39c19862092d90d0a7e4ff8b87bf}{
\index{mln::data@{mln::data}!saturate@{saturate}}
\index{saturate@{saturate}!mln::data@{mln::data}}
\subsubsection[{saturate}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename V $>$ mln::trait::ch\_\-value$<$ I, V $>$::ret mln::data::saturate (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const V \&}]{ min, }
\item[{const V \&}]{ max}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_ad92f39c19862092d90d0a7e4ff8b87bf}
Apply the saturate function to image pixel values.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em min}]The minimum output value. \item[\mbox{\tt[in]} {\em max}]The maximum output value. \end{DoxyParams}


Definition at line 103 of file data/saturate.hh.



References transform().

\hypertarget{a00651_a269009e61be96a6be22f4906908ed912}{
\index{mln::data@{mln::data}!saturate\_\-inplace@{saturate\_\-inplace}}
\index{saturate\_\-inplace@{saturate\_\-inplace}!mln::data@{mln::data}}
\subsubsection[{saturate\_\-inplace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::data::saturate\_\-inplace (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ input, }
\item[{const typename I::value \&}]{ min, }
\item[{const typename I::value \&}]{ max}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a269009e61be96a6be22f4906908ed912}
Apply the saturate function to image pixel values.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em min}]The minimum output value. \item[\mbox{\tt[in]} {\em max}]The maximum output value \end{DoxyParams}


Definition at line 119 of file data/saturate.hh.



References apply().

\hypertarget{a00651_ac6af73b9d562fdd377c28441f4f6add6}{
\index{mln::data@{mln::data}!sort\_\-offsets\_\-increasing@{sort\_\-offsets\_\-increasing}}
\index{sort\_\-offsets\_\-increasing@{sort\_\-offsets\_\-increasing}!mln::data@{mln::data}}
\subsubsection[{sort\_\-offsets\_\-increasing}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf util::array}$<$ unsigned $>$ mln::data::sort\_\-offsets\_\-increasing (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_ac6af73b9d562fdd377c28441f4f6add6}


Sort pixel offsets of the image {\ttfamily input} wrt increasing pixel values. 



Definition at line 298 of file sort\_\-offsets.hh.

\hypertarget{a00651_af4e8d726abd6d3b9a16c5a63d4fbcb43}{
\index{mln::data@{mln::data}!sort\_\-psites\_\-decreasing@{sort\_\-psites\_\-decreasing}}
\index{sort\_\-psites\_\-decreasing@{sort\_\-psites\_\-decreasing}!mln::data@{mln::data}}
\subsubsection[{sort\_\-psites\_\-decreasing}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf p\_\-array}$<$ typename I::psite $>$ mln::data::sort\_\-psites\_\-decreasing (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_af4e8d726abd6d3b9a16c5a63d4fbcb43}
Sort psites the image {\ttfamily input} through a function {\ttfamily f} to set the {\ttfamily output} image in decreasing way.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily input.is\_\-valid} 
\end{DoxyPrecond}


Definition at line 229 of file sort\_\-psites.hh.



Referenced by mln::morpho::tree::min\_\-tree().

\hypertarget{a00651_a97a4002c55e149da9ca3868f73166397}{
\index{mln::data@{mln::data}!sort\_\-psites\_\-increasing@{sort\_\-psites\_\-increasing}}
\index{sort\_\-psites\_\-increasing@{sort\_\-psites\_\-increasing}!mln::data@{mln::data}}
\subsubsection[{sort\_\-psites\_\-increasing}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf p\_\-array}$<$ typename I::psite $>$ mln::data::sort\_\-psites\_\-increasing (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a97a4002c55e149da9ca3868f73166397}
Sort psites the image {\ttfamily input} through a function {\ttfamily f} to set the {\ttfamily output} image in increasing way.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily input.is\_\-valid} 
\end{DoxyPrecond}


Definition at line 219 of file sort\_\-psites.hh.



Referenced by mln::morpho::tree::max\_\-tree().

\hypertarget{a00651_a5135255ba4b69c9a12ce5500f42f0afc}{
\index{mln::data@{mln::data}!stretch@{stretch}}
\index{stretch@{stretch}!mln::data@{mln::data}}
\subsubsection[{stretch}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V , typename I $>$ mln::trait::ch\_\-value$<$ I, V $>$::ret mln::data::stretch (
\begin{DoxyParamCaption}
\item[{const V \&}]{ v, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a5135255ba4b69c9a12ce5500f42f0afc}
Stretch the values of {\ttfamily input} so that they can be stored in {\ttfamily output}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em v}]A value to set the output value type. \item[\mbox{\tt[in]} {\em input}]The input image.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A stretch image with values of the same type as {\ttfamily v}.
\end{DoxyReturn}
\begin{DoxyPrecond}{Precondition}
input.is\_\-valid 
\end{DoxyPrecond}


Definition at line 128 of file stretch.hh.



References mln::data::impl::stretch().

\hypertarget{a00651_a8499a9f87640c6becf3507522c5b03ba}{
\index{mln::data@{mln::data}!to\_\-enc@{to\_\-enc}}
\index{to\_\-enc@{to\_\-enc}!mln::data@{mln::data}}
\subsubsection[{to\_\-enc}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename O $>$ void mln::data::to\_\-enc (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{Image$<$ O $>$ \&}]{ output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a8499a9f87640c6becf3507522c5b03ba}
Set the {\ttfamily output} image with the encoding values of the image {\ttfamily input} pixels.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[out]} {\em output}]The result image.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily output.domain} $>$= {\ttfamily input.domain} 
\end{DoxyPrecond}


Definition at line 60 of file data/to\_\-enc.hh.



References transform().

\hypertarget{a00651_ad6952babc236615e0df1254b218aefbe}{
\index{mln::data@{mln::data}!transform@{transform}}
\index{transform@{transform}!mln::data@{mln::data}}
\subsubsection[{transform}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ mln::trait::ch\_\-value$<$ I, typename F::result $>$::ret mln::data::transform (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Function\_\-v2v$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_ad6952babc236615e0df1254b218aefbe}
Transform the image {\ttfamily input} through a function {\ttfamily f}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em f}]The function.\end{DoxyParams}
This routine runs: \par
 for all p of {\ttfamily input}, {\ttfamily output(p)} = {\ttfamily f}( {\ttfamily input(p)} ). 

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



Referenced by abs(), mln::logical::and\_\-not(), mln::labeling::colorize(), mln::arith::diff\_\-abs(), mln::labeling::fill\_\-holes(), mln::linear::mln\_\-ch\_\-convolve(), mln::linear::mln\_\-ch\_\-convolve\_\-grad(), mln::labeling::pack(), mln::labeling::pack\_\-inplace(), mln::labeling::relabel(), saturate(), mln::data::impl::stretch(), to\_\-enc(), mln::labeling::wrap(), and wrap().

\hypertarget{a00651_a677ddcf739265ecc01a263c43871162d}{
\index{mln::data@{mln::data}!transform@{transform}}
\index{transform@{transform}!mln::data@{mln::data}}
\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::transform (
\begin{DoxyParamCaption}
\item[{const Image$<$ I1 $>$ \&}]{ input1, }
\item[{const Image$<$ I2 $>$ \&}]{ input2, }
\item[{const Function\_\-vv2v$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a677ddcf739265ecc01a263c43871162d}
Transform two images {\ttfamily input1} {\ttfamily input2} through a function {\ttfamily f}.


\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}
This routine runs: \par
 for all p of {\ttfamily input}, {\ttfamily output(p)} = {\ttfamily f}( {\ttfamily input1(p)}, {\ttfamily input2(p)} ). 

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

\hypertarget{a00651_a2b78ca897e9d75834b4000d3b7164a82}{
\index{mln::data@{mln::data}!transform\_\-inplace@{transform\_\-inplace}}
\index{transform\_\-inplace@{transform\_\-inplace}!mln::data@{mln::data}}
\subsubsection[{transform\_\-inplace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I1 , typename I2 , typename F $>$ void mln::data::transform\_\-inplace (
\begin{DoxyParamCaption}
\item[{Image$<$ I1 $>$ \&}]{ ima, }
\item[{const Image$<$ I2 $>$ \&}]{ aux, }
\item[{const Function\_\-vv2v$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)}}
\label{de/d33/a00651_a2b78ca897e9d75834b4000d3b7164a82}
Transform inplace the image {\ttfamily ima} with the image {\ttfamily aux} through a function {\ttfamily f}.


\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}
This routine runs: \par
 for all p of {\ttfamily ima}, {\ttfamily ima(p)} = {\ttfamily f}( {\ttfamily ima(p)}, {\ttfamily aux(p)} ). 

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

\hypertarget{a00651_a045b43636b8c1623790e5a203558dddf}{
\index{mln::data@{mln::data}!transform\_\-inplace@{transform\_\-inplace}}
\index{transform\_\-inplace@{transform\_\-inplace}!mln::data@{mln::data}}
\subsubsection[{transform\_\-inplace}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ void mln::data::transform\_\-inplace (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const Function\_\-v2v$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)}}
\label{de/d33/a00651_a045b43636b8c1623790e5a203558dddf}
Transform inplace the image {\ttfamily ima} through a function {\ttfamily f}.


\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}
This routine runs: \par
 for all p of {\ttfamily ima}, {\ttfamily ima(p)} = {\ttfamily f}( {\ttfamily ima(p)} ). 

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



Referenced by mln::logical::and\_\-inplace(), mln::logical::and\_\-not\_\-inplace(), mln::logical::not\_\-inplace(), mln::logical::or\_\-inplace(), mln::labeling::relabel\_\-inplace(), and mln::logical::xor\_\-inplace().

\hypertarget{a00651_a8816158c44f6fc968b6cef0368c0110d}{
\index{mln::data@{mln::data}!update@{update}}
\index{update@{update}!mln::data@{mln::data}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A , typename I $>$ A::result mln::data::update (
\begin{DoxyParamCaption}
\item[{Accumulator$<$ A $>$ \&}]{ a, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d33/a00651_a8816158c44f6fc968b6cef0368c0110d}
Update an accumulator with the pixel values of the image {\ttfamily input}.


\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 191 of file update.hh.

\hypertarget{a00651_a549afda9fd67b519cea1af14b33ca56f}{
\index{mln::data@{mln::data}!wrap@{wrap}}
\index{wrap@{wrap}!mln::data@{mln::data}}
\subsubsection[{wrap}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V , typename I $>$ mln::trait::ch\_\-value$<$ I, V $>$::ret mln::data::wrap (
\begin{DoxyParamCaption}
\item[{const V \&}]{ v, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)}}
\label{de/d33/a00651_a549afda9fd67b519cea1af14b33ca56f}


Routine to wrap values such as 0 -\/$>$ 0 and \mbox{[}1, lmax\mbox{]} maps to \mbox{[}1, Lmax\mbox{]} (using modulus). 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em v}]The target value type. \item[\mbox{\tt[in]} {\em input}]Input image.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An image with wrapped values. 
\end{DoxyReturn}


Definition at line 65 of file data/wrap.hh.



References transform().

