\hypertarget{a02543}{
\section{mln::draw Namespace Reference}
\label{d1/d57/a02543}\index{mln::draw@{mln::draw}}
}


Namespace of drawing routines.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename B $>$ }\\void \hyperlink{a02543_aac696ed1f85faaf709dd41ee36f7ca98}{box} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00028}{Box}$<$ B $>$ \&b, const typename I::value \&v)
\item 
{\footnotesize template$<$typename I , typename B $>$ }\\void \hyperlink{a02543_aa5439672a8b224fa9ba0afdcb340effd}{box\_\-plain} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00028}{Box}$<$ B $>$ \&b, const typename I::value \&v)
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02543_a32282b4cf7e9f45e232f89aed86f234e}{dashed\_\-line} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const typename I::psite \&beg, const typename I::psite \&end, const typename I::value \&v)
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02543_a0dc316cdbef9324c9b63454a48fe7729}{line} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const typename I::psite \&beg, const typename I::psite \&end, const typename I::value \&v)
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02543_a8bd86faf75b936cfcf2faa87857b4e9a}{plot} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const typename I::point \&p, const typename I::value \&v)
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02543_a9ed06f6c741615592168be7839fa8920}{polygon} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00300}{p\_\-array}$<$ typename I::site $>$ \&par, const typename I::value \&v, unsigned output\_\-ratio)
\item 
{\footnotesize template$<$typename I , typename S $>$ }\\void \hyperlink{a02543_a075a38ba9a3eb41b083c50e9e0870b82}{site\_\-set} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&s, const typename I::value \&v, unsigned output\_\-ratio=1)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of drawing routines. 

\subsection{Function Documentation}
\hypertarget{a02543_aac696ed1f85faaf709dd41ee36f7ca98}{
\index{mln::draw@{mln::draw}!box@{box}}
\index{box@{box}!mln::draw@{mln::draw}}
\subsubsection[{box}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename B $>$ void mln::draw::box (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const Box$<$ B $>$ \&}]{ b, }
\item[{const typename I::value \&}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d57/a02543_aac696ed1f85faaf709dd41ee36f7ca98}
Draw a box at value {\ttfamily v} in image {\ttfamily ima} 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em b}]the boxto draw. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 

{\ttfamily ima} has {\ttfamily beg}. 

{\ttfamily ima} has {\ttfamily end}. 
\end{DoxyPrecond}


Definition at line 72 of file draw/box.hh.



References line().

\hypertarget{a02543_aa5439672a8b224fa9ba0afdcb340effd}{
\index{mln::draw@{mln::draw}!box\_\-plain@{box\_\-plain}}
\index{box\_\-plain@{box\_\-plain}!mln::draw@{mln::draw}}
\subsubsection[{box\_\-plain}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename B $>$ void mln::draw::box\_\-plain (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const Box$<$ B $>$ \&}]{ b, }
\item[{const typename I::value \&}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d57/a02543_aa5439672a8b224fa9ba0afdcb340effd}
Draw a plain box at value {\ttfamily v} in image {\ttfamily ima} 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em b}]the box to draw. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 

{\ttfamily ima} has {\ttfamily beg}. 

{\ttfamily ima} has {\ttfamily end}. 
\end{DoxyPrecond}


Definition at line 71 of file box\_\-plain.hh.



References mln::data::fill().



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

\hypertarget{a02543_a32282b4cf7e9f45e232f89aed86f234e}{
\index{mln::draw@{mln::draw}!dashed\_\-line@{dashed\_\-line}}
\index{dashed\_\-line@{dashed\_\-line}!mln::draw@{mln::draw}}
\subsubsection[{dashed\_\-line}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::draw::dashed\_\-line (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const typename I::psite \&}]{ beg, }
\item[{const typename I::psite \&}]{ end, }
\item[{const typename I::value \&}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d57/a02543_a32282b4cf7e9f45e232f89aed86f234e}
Draw a dashed line at level {\ttfamily v} in image {\ttfamily ima} between the points {\ttfamily beg} and {\ttfamily end}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em beg}]The start point to drawn dashed\_\-line. \item[\mbox{\tt[in]} {\em end}]The end point to drawn dashed\_\-line. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 

{\ttfamily ima} has {\ttfamily beg}. 

{\ttfamily ima} has {\ttfamily end}. 
\end{DoxyPrecond}


Definition at line 91 of file dashed\_\-line.hh.



References mln::data::fill().

\hypertarget{a02543_a0dc316cdbef9324c9b63454a48fe7729}{
\index{mln::draw@{mln::draw}!line@{line}}
\index{line@{line}!mln::draw@{mln::draw}}
\subsubsection[{line}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::draw::line (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const typename I::psite \&}]{ beg, }
\item[{const typename I::psite \&}]{ end, }
\item[{const typename I::value \&}]{ v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d1/d57/a02543_a0dc316cdbef9324c9b63454a48fe7729}
Draw a line at level {\ttfamily v} in image {\ttfamily ima} between the points {\ttfamily beg} and {\ttfamily end}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em beg}]The start point to drawn line. \item[\mbox{\tt[in]} {\em end}]The end point to drawn line. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 

{\ttfamily ima} has {\ttfamily beg}. 

{\ttfamily ima} has {\ttfamily end}. 
\end{DoxyPrecond}


Definition at line 72 of file draw/line.hh.



References mln::data::paste().



Referenced by box(), mln::debug::draw\_\-graph(), and polygon().

\hypertarget{a02543_a8bd86faf75b936cfcf2faa87857b4e9a}{
\index{mln::draw@{mln::draw}!plot@{plot}}
\index{plot@{plot}!mln::draw@{mln::draw}}
\subsubsection[{plot}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::draw::plot (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const typename I::point \&}]{ p, }
\item[{const typename I::value \&}]{ v}
\end{DoxyParamCaption}
)}}
\label{d1/d57/a02543_a8bd86faf75b936cfcf2faa87857b4e9a}
Plot a point at level {\ttfamily v} in image {\ttfamily ima} 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em p}]The point to be plotted. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 

{\ttfamily ima} has {\ttfamily p}. 
\end{DoxyPrecond}
\hypertarget{a02543_a9ed06f6c741615592168be7839fa8920}{
\index{mln::draw@{mln::draw}!polygon@{polygon}}
\index{polygon@{polygon}!mln::draw@{mln::draw}}
\subsubsection[{polygon}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::draw::polygon (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const p\_\-array$<$ typename I::site $>$ \&}]{ par, }
\item[{const typename I::value \&}]{ v, }
\item[{unsigned}]{ output\_\-ratio}
\end{DoxyParamCaption}
)}}
\label{d1/d57/a02543_a9ed06f6c741615592168be7839fa8920}
Draw a polygon at level {\ttfamily v} in image {\ttfamily ima}.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em par}]The polygon site set. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily ima} has to be initialized. 
\end{DoxyPrecond}


Definition at line 70 of file polygon.hh.



References line().

\hypertarget{a02543_a075a38ba9a3eb41b083c50e9e0870b82}{
\index{mln::draw@{mln::draw}!site\_\-set@{site\_\-set}}
\index{site\_\-set@{site\_\-set}!mln::draw@{mln::draw}}
\subsubsection[{site\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename S $>$ void mln::draw::site\_\-set (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const Site\_\-Set$<$ S $>$ \&}]{ s, }
\item[{const typename I::value \&}]{ v, }
\item[{unsigned}]{ output\_\-ratio = {\ttfamily 1}}
\end{DoxyParamCaption}
)}}
\label{d1/d57/a02543_a075a38ba9a3eb41b083c50e9e0870b82}
Draw a sites with value {\ttfamily v} in image {\ttfamily ima} 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in,out]} {\em ima}]The image to be drawn. \item[\mbox{\tt[in]} {\em b}]the site set to draw. \item[\mbox{\tt[in]} {\em v}]The value to assign to all drawn pixels. \item[\mbox{\tt[in]} {\em output\_\-ratio}]size ratio between output image and the image from which the bboxes were calculated.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily s} is included in {\ttfamily ima} domain. 
\end{DoxyPrecond}


Definition at line 65 of file mln/draw/site\_\-set.hh.

