\hypertarget{a02534}{
\section{mln::debug Namespace Reference}
\label{db/df5/a02534}\index{mln::debug@{mln::debug}}
}


Namespace of routines that help to debug.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02535}{impl}


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

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename G , typename F $>$ }\\void \hyperlink{a02534_a9baf01476a8799f71e42c49d22db2c71}{draw\_\-graph} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00325}{p\_\-vertices}$<$ G, F $>$ \&pv, typename I::value vcolor, typename I::value ecolor)
\begin{DoxyCompactList}\small\item\em Draw an image {\ttfamily ima} from a \hyperlink{a00325}{mln::p\_\-vertices} {\ttfamily pv}, with value {\ttfamily vcolor} for vertices, value {\ttfamily ecolor} for edges and 0 for the background. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename G , typename F , typename V , typename E $>$ }\\void \hyperlink{a02534_a22e560e5f3cc20761a6d38aa785e0daf}{draw\_\-graph} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00325}{p\_\-vertices}$<$ G, F $>$ \&pv, const \hyperlink{a00031}{Function}$<$ V $>$ \&vcolor\_\-f\_\-, const \hyperlink{a00031}{Function}$<$ E $>$ \&ecolor\_\-f\_\-)
\begin{DoxyCompactList}\small\item\em Draw an image {\ttfamily ima} from a \hyperlink{a00325}{mln::p\_\-vertices} {\ttfamily pv}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename G , typename F , typename V , typename E $>$ }\\void \hyperlink{a02534_acf7463465f80f9c3af632fc3b9f3174a}{draw\_\-graph} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00325}{p\_\-vertices}$<$ \hyperlink{a00402}{util::line\_\-graph}$<$ G $>$, F $>$ \&pv, const \hyperlink{a00031}{Function}$<$ V $>$ \&vcolor\_\-f\_\-, const \hyperlink{a00031}{Function}$<$ E $>$ \&ecolor\_\-f\_\-)
\begin{DoxyCompactList}\small\item\em Draw an image {\ttfamily ima} from a \hyperlink{a00325}{mln::p\_\-vertices} {\ttfamily pv}. \item\end{DoxyCompactList}\item 
std::string \hyperlink{a02534_a222283bfd22859f01b0ee4eae70452c6}{filename} (const std::string \&filename, int id)
\begin{DoxyCompactList}\small\item\em Constructs and returns a formatted output file name. \item\end{DoxyCompactList}\item 
signed short \hyperlink{a02534_a4983482207ac5eed47c3fe3b9d8c2c6c}{format} (signed char v)
\begin{DoxyCompactList}\small\item\em Format a signed char to print it properly, i.e., like an integer value. \item\end{DoxyCompactList}\item 
unsigned short \hyperlink{a02534_af5325a16cbc3508cb02ec114774670d2}{format} (unsigned char v)
\begin{DoxyCompactList}\small\item\em Format an unsigned char to print it properly, i.e., like an integer value. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\const T \& \hyperlink{a02534_a2490087606bab72896f1e4708d9e47e7}{format} (const T \&v)
\begin{DoxyCompactList}\small\item\em Default version for formatting a value is a no-\/op. \item\end{DoxyCompactList}\item 
char \hyperlink{a02534_ab951ba6cdbfd8c5dd546a8554cdf6fd1}{format} (bool v)
\begin{DoxyCompactList}\small\item\em Format a Boolean to print it nicely: \char`\"{}$|$\char`\"{} for true and \char`\"{}-\/\char`\"{} for false. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02534_a1aa506b1ba15a006b1947bf49a90fd41}{iota} (\hyperlink{a00044}{Image}$<$ I $>$ \&input, unsigned base\_\-index)
\item 
{\footnotesize template$<$typename I $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02534_a648692de1755c3d5e309e93a8dfec7a4}{mosaic} (const \hyperlink{a00027}{util::array}$<$ I $>$ \&input, unsigned n\_\-horizontal, const typename I::value \&bg)
\begin{DoxyCompactList}\small\item\em Create a single image from an array of image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02534_a7d1acc6f2f195c691db72e9132af1839}{println} (const std::string \&msg, const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Print the message {\ttfamily msg} and the image {\ttfamily input} on the standard output. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02534_a526be70871e53841a7c3a15c05712079}{println} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Print the image {\ttfamily input} on the standard output. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02534_a6d796c891ed3c05131d748306d2125f0}{println\_\-with\_\-border} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Print the image {\ttfamily input} on the standard output. \item\end{DoxyCompactList}\item 
void \hyperlink{a02534_ade9495b4e385d2b54958ccb9e85805bd}{put\_\-word} (\hyperlink{a00248}{image2d}$<$ char $>$ \&inout, const \hyperlink{a00330}{point2d} \&word\_\-start, const std::string \&word)
\begin{DoxyCompactList}\small\item\em Put the {\ttfamily word} starting at location {\ttfamily word\_\-start} in the image {\ttfamily inout}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00248}{image2d}$<$ typename I::value $>$ \hyperlink{a02534_a75d29b5eb5d4cc3ac4c1f8b7b03d2823}{slices\_\-2d} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, unsigned n\_\-horizontal, unsigned n\_\-vertical, const typename I::value \&bg)
\begin{DoxyCompactList}\small\item\em Create a 2D image of the slices of the 3D image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00248}{image2d}$<$ typename I::value $>$ \hyperlink{a02534_ad0c7f87e0a16cb6ab31b3de4b5130c75}{slices\_\-2d} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, float ratio\_\-hv, const typename I::value \&bg)
\begin{DoxyCompactList}\small\item\em Create a 2D image of the slices of the 3D image {\ttfamily input}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J $>$ }\\mln::trait::ch\_\-value$<$ I, \hyperlink{a00431}{value::rgb8} $>$::ret \hyperlink{a02534_a539e166226a41ec90dea694d8c82f321}{superpose} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00044}{Image}$<$ J $>$ \&object)
\item 
{\footnotesize template$<$typename I , typename J $>$ }\\mln::trait::ch\_\-value$<$ I, \hyperlink{a00431}{value::rgb8} $>$::ret \hyperlink{a02534_a30be1a7cf10f2d574be030f41ead65dd}{superpose} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input\_\-, const \hyperlink{a00044}{Image}$<$ J $>$ \&object\_\-, const \hyperlink{a00431}{value::rgb8} \&object\_\-color)
\begin{DoxyCompactList}\small\item\em Superpose two images. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02534_af9ef70f1713e5eb7d81d528611c4835c}{z\_\-order} (\hyperlink{a00044}{Image}$<$ I $>$ \&input)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of routines that help to debug. 

\subsection{Function Documentation}
\hypertarget{a02534_a9baf01476a8799f71e42c49d22db2c71}{
\index{mln::debug@{mln::debug}!draw\_\-graph@{draw\_\-graph}}
\index{draw\_\-graph@{draw\_\-graph}!mln::debug@{mln::debug}}
\subsubsection[{draw\_\-graph}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename G , typename F $>$ void mln::debug::draw\_\-graph (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const p\_\-vertices$<$ G, F $>$ \&}]{ pv, }
\item[{typename I::value}]{ vcolor, }
\item[{typename I::value}]{ ecolor}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a9baf01476a8799f71e42c49d22db2c71}


Draw an image {\ttfamily ima} from a \hyperlink{a00325}{mln::p\_\-vertices} {\ttfamily pv}, with value {\ttfamily vcolor} for vertices, value {\ttfamily ecolor} for edges and 0 for the background. 



Definition at line 142 of file draw\_\-graph.hh.



References mln::p\_\-vertices$<$ G, F $>$::graph(), and mln::draw::line().



Referenced by mln::make\_\-debug\_\-graph\_\-image().

\hypertarget{a02534_a22e560e5f3cc20761a6d38aa785e0daf}{
\index{mln::debug@{mln::debug}!draw\_\-graph@{draw\_\-graph}}
\index{draw\_\-graph@{draw\_\-graph}!mln::debug@{mln::debug}}
\subsubsection[{draw\_\-graph}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename G , typename F , typename V , typename E $>$ void mln::debug::draw\_\-graph (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const p\_\-vertices$<$ G, F $>$ \&}]{ pv, }
\item[{const Function$<$ V $>$ \&}]{ vcolor\_\-f\_\-, }
\item[{const Function$<$ E $>$ \&}]{ ecolor\_\-f\_\-}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a22e560e5f3cc20761a6d38aa785e0daf}


Draw an image {\ttfamily ima} from a \hyperlink{a00325}{mln::p\_\-vertices} {\ttfamily pv}. 

Colors for vertices are defined through {\ttfamily vcolor\_\-f\_\-}. Colors for edges are defined though {\ttfamily ecolor\_\-f\_\-}. 

Definition at line 173 of file draw\_\-graph.hh.



References mln::draw::box\_\-plain(), mln::box$<$ P $>$::crop\_\-wrt(), mln::p\_\-vertices$<$ G, F $>$::graph(), and mln::draw::line().

\hypertarget{a02534_acf7463465f80f9c3af632fc3b9f3174a}{
\index{mln::debug@{mln::debug}!draw\_\-graph@{draw\_\-graph}}
\index{draw\_\-graph@{draw\_\-graph}!mln::debug@{mln::debug}}
\subsubsection[{draw\_\-graph}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename G , typename F , typename V , typename E $>$ void mln::debug::draw\_\-graph (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const p\_\-vertices$<$ util::line\_\-graph$<$ G $>$, F $>$ \&}]{ pv, }
\item[{const Function$<$ V $>$ \&}]{ vcolor\_\-f\_\-, }
\item[{const Function$<$ E $>$ \&}]{ ecolor\_\-f\_\-}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_acf7463465f80f9c3af632fc3b9f3174a}


Draw an image {\ttfamily ima} from a \hyperlink{a00325}{mln::p\_\-vertices} {\ttfamily pv}. 

Colors for vertices are defined through {\ttfamily vcolor\_\-f\_\-}. Colors for edges are defined though {\ttfamily ecolor\_\-f\_\-}. 

Definition at line 211 of file draw\_\-graph.hh.



References mln::p\_\-line2d::begin(), mln::p\_\-line2d::end(), mln::p\_\-vertices$<$ G, F $>$::graph(), and mln::draw::line().

\hypertarget{a02534_a222283bfd22859f01b0ee4eae70452c6}{
\index{mln::debug@{mln::debug}!filename@{filename}}
\index{filename@{filename}!mln::debug@{mln::debug}}
\subsubsection[{filename}]{\setlength{\rightskip}{0pt plus 5cm}std::string mln::debug::filename (
\begin{DoxyParamCaption}
\item[{const std::string \&}]{ filename, }
\item[{int}]{ id = {\ttfamily -\/1}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a222283bfd22859f01b0ee4eae70452c6}


Constructs and returns a formatted output file name. 

The file name is formatted as follow:

`filename\_\-prefix`\_\-`id`\_\-`filename`

Where:
\begin{DoxyItemize}
\item `filename\_\-prefix` can be set through the global variable debug::internal::filename\_\-prefix.
\end{DoxyItemize}

`postfix\_\-id` is autoincremented by default. Its value can be forced.
\begin{DoxyItemize}
\item `filename` is the given filename 
\end{DoxyItemize}

Definition at line 86 of file filename.hh.

\hypertarget{a02534_a4983482207ac5eed47c3fe3b9d8c2c6c}{
\index{mln::debug@{mln::debug}!format@{format}}
\index{format@{format}!mln::debug@{mln::debug}}
\subsubsection[{format}]{\setlength{\rightskip}{0pt plus 5cm}signed short mln::debug::format (
\begin{DoxyParamCaption}
\item[{signed char}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a4983482207ac5eed47c3fe3b9d8c2c6c}


Format a signed char to print it properly, i.e., like an integer value. 



Definition at line 78 of file format.hh.

\hypertarget{a02534_af5325a16cbc3508cb02ec114774670d2}{
\index{mln::debug@{mln::debug}!format@{format}}
\index{format@{format}!mln::debug@{mln::debug}}
\subsubsection[{format}]{\setlength{\rightskip}{0pt plus 5cm}unsigned short mln::debug::format (
\begin{DoxyParamCaption}
\item[{unsigned char}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_af5325a16cbc3508cb02ec114774670d2}


Format an unsigned char to print it properly, i.e., like an integer value. 



Definition at line 85 of file format.hh.

\hypertarget{a02534_a2490087606bab72896f1e4708d9e47e7}{
\index{mln::debug@{mln::debug}!format@{format}}
\index{format@{format}!mln::debug@{mln::debug}}
\subsubsection[{format}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T \& mln::debug::format (
\begin{DoxyParamCaption}
\item[{const T \&}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a2490087606bab72896f1e4708d9e47e7}


Default version for formatting a value is a no-\/op. 



Definition at line 64 of file format.hh.



Referenced by mln::value::operator$<$$<$(), and mln::Gpoint$<$ E $>$::operator$<$$<$().

\hypertarget{a02534_ab951ba6cdbfd8c5dd546a8554cdf6fd1}{
\index{mln::debug@{mln::debug}!format@{format}}
\index{format@{format}!mln::debug@{mln::debug}}
\subsubsection[{format}]{\setlength{\rightskip}{0pt plus 5cm}char mln::debug::format (
\begin{DoxyParamCaption}
\item[{bool}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_ab951ba6cdbfd8c5dd546a8554cdf6fd1}


Format a Boolean to print it nicely: \char`\"{}$|$\char`\"{} for true and \char`\"{}-\/\char`\"{} for false. 



Definition at line 71 of file format.hh.

\hypertarget{a02534_a1aa506b1ba15a006b1947bf49a90fd41}{
\index{mln::debug@{mln::debug}!iota@{iota}}
\index{iota@{iota}!mln::debug@{mln::debug}}
\subsubsection[{iota}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::debug::iota (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ input, }
\item[{unsigned}]{ base\_\-index}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a1aa506b1ba15a006b1947bf49a90fd41}
Fill the image {\ttfamily input} with successive values.


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


Definition at line 88 of file debug/iota.hh.



References iota().



Referenced by iota().

\hypertarget{a02534_a648692de1755c3d5e309e93a8dfec7a4}{
\index{mln::debug@{mln::debug}!mosaic@{mosaic}}
\index{mosaic@{mosaic}!mln::debug@{mln::debug}}
\subsubsection[{mosaic}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ mln::trait::concrete$<$ I $>$::ret mln::debug::mosaic (
\begin{DoxyParamCaption}
\item[{const util::array$<$ I $>$ \&}]{ input, }
\item[{unsigned}]{ n\_\-horizontal, }
\item[{const typename I::value \&}]{ bg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a648692de1755c3d5e309e93a8dfec7a4}


Create a single image from an array of image. 

The size of the output image is defined by:

width = n\_\-horizontal $\ast$ max(input\mbox{[}i\mbox{]}.ncols()) height = (input.size() / n\_\-horizontal) $\ast$ max(input\mbox{[}i\mbox{]}.nrows())

\begin{DoxyReturn}{Returns}
a single image where all the input images are displayed as a mosaic. 
\end{DoxyReturn}


Definition at line 77 of file mosaic.hh.



References mln::apply\_\-p2p(), mln::data::fill(), and mln::data::paste().

\hypertarget{a02534_a7d1acc6f2f195c691db72e9132af1839}{
\index{mln::debug@{mln::debug}!println@{println}}
\index{println@{println}!mln::debug@{mln::debug}}
\subsubsection[{println}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::debug::println (
\begin{DoxyParamCaption}
\item[{const std::string \&}]{ msg, }
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)}}
\label{db/df5/a02534_a7d1acc6f2f195c691db72e9132af1839}


Print the message {\ttfamily msg} and the image {\ttfamily input} on the standard output. 



Definition at line 98 of file println.hh.



References println().

\hypertarget{a02534_a526be70871e53841a7c3a15c05712079}{
\index{mln::debug@{mln::debug}!println@{println}}
\index{println@{println}!mln::debug@{mln::debug}}
\subsubsection[{println}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::debug::println (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a526be70871e53841a7c3a15c05712079}


Print the image {\ttfamily input} on the standard output. 



Definition at line 87 of file println.hh.



References mln::geom::bbox().



Referenced by println().

\hypertarget{a02534_a6d796c891ed3c05131d748306d2125f0}{
\index{mln::debug@{mln::debug}!println\_\-with\_\-border@{println\_\-with\_\-border}}
\index{println\_\-with\_\-border@{println\_\-with\_\-border}!mln::debug@{mln::debug}}
\subsubsection[{println\_\-with\_\-border}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::debug::println\_\-with\_\-border (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a6d796c891ed3c05131d748306d2125f0}


Print the image {\ttfamily input} on the standard output. 



Definition at line 79 of file println\_\-with\_\-border.hh.



References mln::geom::bbox().

\hypertarget{a02534_ade9495b4e385d2b54958ccb9e85805bd}{
\index{mln::debug@{mln::debug}!put\_\-word@{put\_\-word}}
\index{put\_\-word@{put\_\-word}!mln::debug@{mln::debug}}
\subsubsection[{put\_\-word}]{\setlength{\rightskip}{0pt plus 5cm}void mln::debug::put\_\-word (
\begin{DoxyParamCaption}
\item[{image2d$<$ char $>$ \&}]{ inout, }
\item[{const point2d \&}]{ word\_\-start, }
\item[{const std::string \&}]{ word}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_ade9495b4e385d2b54958ccb9e85805bd}


Put the {\ttfamily word} starting at location {\ttfamily word\_\-start} in the image {\ttfamily inout}. 



Definition at line 55 of file put\_\-word.hh.



References mln::image2d$<$ T $>$::has(), and mln::point$<$ G, C $>$::last\_\-coord().

\hypertarget{a02534_a75d29b5eb5d4cc3ac4c1f8b7b03d2823}{
\index{mln::debug@{mln::debug}!slices\_\-2d@{slices\_\-2d}}
\index{slices\_\-2d@{slices\_\-2d}!mln::debug@{mln::debug}}
\subsubsection[{slices\_\-2d}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf image2d}$<$ typename I::value $>$ mln::debug::slices\_\-2d (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{unsigned}]{ n\_\-horizontal, }
\item[{unsigned}]{ n\_\-vertical, }
\item[{const typename I::value \&}]{ bg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_a75d29b5eb5d4cc3ac4c1f8b7b03d2823}


Create a 2D image of the slices of the 3D image {\ttfamily input}. 



Definition at line 79 of file slices\_\-2d.hh.



References mln::apply\_\-p2p(), mln::data::fill(), and mln::data::paste().



Referenced by slices\_\-2d().

\hypertarget{a02534_ad0c7f87e0a16cb6ab31b3de4b5130c75}{
\index{mln::debug@{mln::debug}!slices\_\-2d@{slices\_\-2d}}
\index{slices\_\-2d@{slices\_\-2d}!mln::debug@{mln::debug}}
\subsubsection[{slices\_\-2d}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf image2d}$<$ typename I::value $>$ mln::debug::slices\_\-2d (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{float}]{ ratio\_\-hv, }
\item[{const typename I::value \&}]{ bg}
\end{DoxyParamCaption}
)}}
\label{db/df5/a02534_ad0c7f87e0a16cb6ab31b3de4b5130c75}


Create a 2D image of the slices of the 3D image {\ttfamily input}. 



Definition at line 162 of file slices\_\-2d.hh.



References slices\_\-2d().

\hypertarget{a02534_a539e166226a41ec90dea694d8c82f321}{
\index{mln::debug@{mln::debug}!superpose@{superpose}}
\index{superpose@{superpose}!mln::debug@{mln::debug}}
\subsubsection[{superpose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ mln::trait::ch\_\-value$<$ I, {\bf value::rgb8} $>$::ret mln::debug::superpose (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Image$<$ J $>$ \&}]{ object}
\end{DoxyParamCaption}
)}}
\label{db/df5/a02534_a539e166226a41ec90dea694d8c82f321}
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 

Definition at line 106 of file debug/superpose.hh.



References mln::literal::red, and superpose().

\hypertarget{a02534_a30be1a7cf10f2d574be030f41ead65dd}{
\index{mln::debug@{mln::debug}!superpose@{superpose}}
\index{superpose@{superpose}!mln::debug@{mln::debug}}
\subsubsection[{superpose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ mln::trait::ch\_\-value$<$ I, {\bf value::rgb8} $>$::ret mln::debug::superpose (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input\_\-, }
\item[{const Image$<$ J $>$ \&}]{ object\_\-, }
\item[{const value::rgb8 \&}]{ object\_\-color}
\end{DoxyParamCaption}
)}}
\label{db/df5/a02534_a30be1a7cf10f2d574be030f41ead65dd}


Superpose two images. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input\_\-}]An image. Its value type must be convertible toward \hyperlink{a02755_af78d26c90bbb27c267336d87dab887a6}{value::rgb8} thanks to a conversion operator or convert::from\_\-to. \item[\mbox{\tt[in]} {\em object\_\-}]A scalar or labeled image. Objects used for superposition. have their pixel values different from 0. \item[\mbox{\tt[in]} {\em object\_\-color}]The color used to draw the objects in {\ttfamily object\_\-}.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily input\_\-} and {\ttfamily object\_\-} must have the same domain.
\end{DoxyPrecond}
\begin{DoxyReturn}{Returns}
A color image. 
\end{DoxyReturn}


Definition at line 79 of file debug/superpose.hh.



References mln::data::convert(), mln::data::fill(), and mln::literal::zero.



Referenced by superpose().

\hypertarget{a02534_af9ef70f1713e5eb7d81d528611c4835c}{
\index{mln::debug@{mln::debug}!z\_\-order@{z\_\-order}}
\index{z\_\-order@{z\_\-order}!mln::debug@{mln::debug}}
\subsubsection[{z\_\-order}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::debug::z\_\-order (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{db/df5/a02534_af9ef70f1713e5eb7d81d528611c4835c}
Fill the image {\ttfamily input} with Z-\/order (curve) values.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em input}]The image in which values are assigned.\end{DoxyParams}
Reference: \href{http://en.wikipedia.org/wiki/Z-order_(curve)}{\tt http://en.wikipedia.org/wiki/Z-\/order\_\-(curve)} 

Definition at line 142 of file z\_\-order.hh.

