\hypertarget{a02522}{
\section{mln::convert Namespace Reference}
\label{d7/da8/a02522}\index{mln::convert@{mln::convert}}
}


Namespace of conversion routines.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename V $>$ }\\void \hyperlink{a02522_afed6e107ab76cedb6e021aea1628381b}{from\_\-to} (const float \&from, \hyperlink{a00418}{Value}$<$ V $>$ \&to)
\begin{DoxyCompactList}\small\item\em Conversion of a float {\ttfamily from} towards a value {\ttfamily to}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename V $>$ }\\void \hyperlink{a02522_a5b47b54dc80c22f049f81e7276f4657a}{from\_\-to} (const int \&from, \hyperlink{a00418}{Value}$<$ V $>$ \&to)
\begin{DoxyCompactList}\small\item\em Conversion of a int {\ttfamily from} towards a value {\ttfamily to}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename V $>$ }\\void \hyperlink{a02522_a690c9ee9a998f406a8e96ec88ff7e3df}{from\_\-to} (const double \&from, \hyperlink{a00418}{Value}$<$ V $>$ \&to)
\begin{DoxyCompactList}\small\item\em Conversion of a double {\ttfamily from} towards a value {\ttfamily to}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename V $>$ }\\void \hyperlink{a02522_aed654818a9761101394548b4360b38c5}{from\_\-to} (const unsigned \&from, \hyperlink{a00418}{Value}$<$ V $>$ \&to)
\begin{DoxyCompactList}\small\item\em Conversion of an unsigned {\ttfamily from} towards a value {\ttfamily to}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S $>$ }\\\hyperlink{a02522_acbc1d12613842b2585c2067f270f693e}{mln\_\-image\_\-from\_\-grid} (typename S::site::grid, bool) to\_\-image(const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&pset
\begin{DoxyCompactList}\small\item\em Convert a point set {\ttfamily pset} into a binary image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\\hyperlink{a02522_abcd0be808e76b5bcd0ca4395a1d16472}{mln\_\-image\_\-from\_\-grid} (typename W::site::grid, bool) to\_\-image(const \hyperlink{a00454}{Window}$<$ W $>$ \&win)
\begin{DoxyCompactList}\small\item\em Convert a window {\ttfamily win} into a binary image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\\hyperlink{a02522_a52e760a16a6a13411f925222e642079e}{mln\_\-image\_\-from\_\-grid} (typename W::site::grid, mln\_\-weight(W)) to\_\-image(const \hyperlink{a00443}{Weighted\_\-Window}$<$ W $>$ \&w\_\-win)
\begin{DoxyCompactList}\small\item\em Convert a weighted window {\ttfamily w\_\-win} into an image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename N $>$ }\\\hyperlink{a02522_a293f851b39088816b571af8c393fff82}{mln\_\-image\_\-from\_\-grid} (typename N::site::grid, bool) to\_\-image(const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Convert a neighborhood {\ttfamily nbh} into a binary image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename N $>$ }\\\hyperlink{a02522_a7d9cc4d639a8d24029d135c1b4a26eee}{mln\_\-window} (N) to\_\-window(const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Convert a neighborhood {\ttfamily nbh} into a window. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename T , typename O $>$ }\\T \hyperlink{a02522_a2800eb8b5e044c4de0cbf0837be90bef}{to} (const O \&from)
\begin{DoxyCompactList}\small\item\em Conversion of the object {\ttfamily from} towards an object with type {\ttfamily T}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename P $>$ }\\P::dpoint \hyperlink{a02522_aba7c1ec93578553b4a913946b8b625e9}{to\_\-dpoint} (const \hyperlink{a00331}{Point\_\-Site}$<$ P $>$ \&p)
\begin{DoxyCompactList}\small\item\em Convert a point site {\ttfamily p} into a delta-\/point. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\pw::value\_\-$<$ I $>$ \hyperlink{a02522_a12653912798b10f0a970667543fa4768}{to\_\-fun} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima)
\begin{DoxyCompactList}\small\item\em Convert an image into a function. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\\hyperlink{a00247}{image1d}$<$ unsigned $>$ \hyperlink{a02522_a70406098e4a9e2ab01fa871b1323413f}{to\_\-image} (const \hyperlink{a00246}{histo::array}$<$ T $>$ \&h)
\begin{DoxyCompactList}\small\item\em Convert an histo {\ttfamily h} into an image1d$<$unsigned$>$. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00300}{p\_\-array}$<$ typename I::psite $>$ \hyperlink{a02522_aa9d8402122b0ff829a701db4e59ab88d}{to\_\-p\_\-array} (const \hyperlink{a00044}{Image}$<$ I $>$ \&img)
\begin{DoxyCompactList}\small\item\em Convert an image {\ttfamily img} into a \hyperlink{a00300}{p\_\-array}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S $>$ }\\\hyperlink{a00300}{p\_\-array}$<$ typename S::psite $>$ \hyperlink{a02522_ad10e38bfec4b600b166ad40fc6cd971d}{to\_\-p\_\-array} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&pset)
\begin{DoxyCompactList}\small\item\em Convert a point set {\ttfamily pset} into a \hyperlink{a00300}{p\_\-array} (point set vector). \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\\hyperlink{a00300}{p\_\-array}$<$ typename W::psite $>$ \hyperlink{a02522_a177686fad8c37d5857407337a7ee37f9}{to\_\-p\_\-array} (const \hyperlink{a00454}{Window}$<$ W $>$ \&win, const typename W::psite \&p)
\begin{DoxyCompactList}\small\item\em Convert a window {\ttfamily win} centered at point {\ttfamily p} into a \hyperlink{a00300}{p\_\-array} (point set vector). \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename N $>$ }\\\hyperlink{a00320}{p\_\-set}$<$ typename N::psite $>$ \hyperlink{a02522_adf02a3588b8e16bdafde41eaaa9117ae}{to\_\-p\_\-set} (const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Convert a neighborhood {\ttfamily nbh} into a site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00320}{p\_\-set}$<$ typename I::psite $>$ \hyperlink{a02522_ae89675250902780a5afeedefcf7a79af}{to\_\-p\_\-set} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima)
\begin{DoxyCompactList}\small\item\em Convert a binary image {\ttfamily ima} into a site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename P , typename C $>$ }\\\hyperlink{a00320}{p\_\-set}$<$ P $>$ \hyperlink{a02522_ad64168ccecf40d3c4dbd995300e9679c}{to\_\-p\_\-set} (const std::set$<$ P, C $>$ \&s)
\begin{DoxyCompactList}\small\item\em Convert an std::set {\ttfamily s} of sites into a site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S $>$ }\\\hyperlink{a00320}{p\_\-set}$<$ typename S::psite $>$ \hyperlink{a02522_ad06b1cf763b1f13470bcf7690086125d}{to\_\-p\_\-set} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&ps)
\begin{DoxyCompactList}\small\item\em Convert any site set {\ttfamily ps} into a 'mlnp\_\-set' site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\\hyperlink{a00320}{p\_\-set}$<$ typename W::psite $>$ \hyperlink{a02522_a01b5e463d4b228a45b3699d4bf516922}{to\_\-p\_\-set} (const \hyperlink{a00454}{Window}$<$ W $>$ \&win)
\begin{DoxyCompactList}\small\item\em Convert a \hyperlink{a00454}{Window} {\ttfamily win} into a site set. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\QImage \hyperlink{a02522_a8586389f38da0df99f546a5f2549cf05}{to\_\-qimage} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima)
\begin{DoxyCompactList}\small\item\em Convert a Milena image to a Qimage. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename N $>$ }\\\hyperlink{a00455}{window}$<$ typename N::dpoint $>$ \hyperlink{a02522_a1d616ba468bca3c6a102eda9a042c7d0}{to\_\-upper\_\-window} (const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Convert a neighborhood {\ttfamily nbh} into an upper window. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\\hyperlink{a00455}{window}$<$ typename W::dpsite $>$ \hyperlink{a02522_ad51a6ec95d7e37a21e2048f205838a45}{to\_\-upper\_\-window} (const \hyperlink{a00454}{Window}$<$ W $>$ \&win)
\begin{DoxyCompactList}\small\item\em Convert a window {\ttfamily nbh} into an upper window. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename D , typename C $>$ }\\\hyperlink{a00455}{window}$<$ D $>$ \hyperlink{a02522_a8a796018542526736a3bda5ff1f87948}{to\_\-window} (const std::set$<$ D, C $>$ \&s)
\begin{DoxyCompactList}\small\item\em Convert an std::set {\ttfamily s} of delta-\/sites into a window. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\\hyperlink{a00455}{window}$<$ typename I::site::dpsite $>$ \hyperlink{a02522_ae83c33548748a96f192178b896673fcd}{to\_\-window} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima)
\begin{DoxyCompactList}\small\item\em Convert a binary image {\ttfamily ima} into a window. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S $>$ }\\\hyperlink{a00455}{window}$<$ typename S::site::dpsite $>$ \hyperlink{a02522_ad85ebe20807e9eac3fc56d8697334b53}{to\_\-window} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&pset)
\begin{DoxyCompactList}\small\item\em Convert a site set {\ttfamily pset} into a window. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
fun::C$<$ R($\ast$)(A)$>$ \hyperlink{a02522_afe4a9d8df272cef5abe2efaeb41cd130}{to\_\-fun} (R($\ast$f)(A))
\begin{DoxyCompactList}\small\item\em Convert a C unary function into an mln::fun::C. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of conversion routines. 

\subsection{Function Documentation}
\hypertarget{a02522_afed6e107ab76cedb6e021aea1628381b}{
\index{mln::convert@{mln::convert}!from\_\-to@{from\_\-to}}
\index{from\_\-to@{from\_\-to}!mln::convert@{mln::convert}}
\subsubsection[{from\_\-to}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V $>$ void mln::convert::from\_\-to (
\begin{DoxyParamCaption}
\item[{const float \&}]{ from, }
\item[{Value$<$ V $>$ \&}]{ to}
\end{DoxyParamCaption}
)}}
\label{d7/da8/a02522_afed6e107ab76cedb6e021aea1628381b}


Conversion of a float {\ttfamily from} towards a value {\ttfamily to}. 

\hypertarget{a02522_a5b47b54dc80c22f049f81e7276f4657a}{
\index{mln::convert@{mln::convert}!from\_\-to@{from\_\-to}}
\index{from\_\-to@{from\_\-to}!mln::convert@{mln::convert}}
\subsubsection[{from\_\-to}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V $>$ void mln::convert::from\_\-to (
\begin{DoxyParamCaption}
\item[{const int \&}]{ from, }
\item[{Value$<$ V $>$ \&}]{ to}
\end{DoxyParamCaption}
)}}
\label{d7/da8/a02522_a5b47b54dc80c22f049f81e7276f4657a}


Conversion of a int {\ttfamily from} towards a value {\ttfamily to}. 

\hypertarget{a02522_a690c9ee9a998f406a8e96ec88ff7e3df}{
\index{mln::convert@{mln::convert}!from\_\-to@{from\_\-to}}
\index{from\_\-to@{from\_\-to}!mln::convert@{mln::convert}}
\subsubsection[{from\_\-to}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V $>$ void mln::convert::from\_\-to (
\begin{DoxyParamCaption}
\item[{const double \&}]{ from, }
\item[{Value$<$ V $>$ \&}]{ to}
\end{DoxyParamCaption}
)}}
\label{d7/da8/a02522_a690c9ee9a998f406a8e96ec88ff7e3df}


Conversion of a double {\ttfamily from} towards a value {\ttfamily to}. 

\hypertarget{a02522_aed654818a9761101394548b4360b38c5}{
\index{mln::convert@{mln::convert}!from\_\-to@{from\_\-to}}
\index{from\_\-to@{from\_\-to}!mln::convert@{mln::convert}}
\subsubsection[{from\_\-to}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V $>$ void mln::convert::from\_\-to (
\begin{DoxyParamCaption}
\item[{const unsigned \&}]{ from, }
\item[{Value$<$ V $>$ \&}]{ to}
\end{DoxyParamCaption}
)}}
\label{d7/da8/a02522_aed654818a9761101394548b4360b38c5}


Conversion of an unsigned {\ttfamily from} towards a value {\ttfamily to}. 

\hypertarget{a02522_acbc1d12613842b2585c2067f270f693e}{
\index{mln::convert@{mln::convert}!mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}}
\index{mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}!mln::convert@{mln::convert}}
\subsubsection[{mln\_\-image\_\-from\_\-grid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ mln::convert::mln\_\-image\_\-from\_\-grid (
\begin{DoxyParamCaption}
\item[{typename S::site::grid}]{, }
\item[{bool}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_acbc1d12613842b2585c2067f270f693e}


Convert a point set {\ttfamily pset} into a binary image. 

Width of the converted image will be pset.bbox + 2 $\ast$ {\ttfamily border}. \hypertarget{a02522_abcd0be808e76b5bcd0ca4395a1d16472}{
\index{mln::convert@{mln::convert}!mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}}
\index{mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}!mln::convert@{mln::convert}}
\subsubsection[{mln\_\-image\_\-from\_\-grid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ mln::convert::mln\_\-image\_\-from\_\-grid (
\begin{DoxyParamCaption}
\item[{typename W::site::grid}]{, }
\item[{bool}]{}
\end{DoxyParamCaption}
) const}}
\label{d7/da8/a02522_abcd0be808e76b5bcd0ca4395a1d16472}


Convert a window {\ttfamily win} into a binary image. 

\hypertarget{a02522_a52e760a16a6a13411f925222e642079e}{
\index{mln::convert@{mln::convert}!mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}}
\index{mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}!mln::convert@{mln::convert}}
\subsubsection[{mln\_\-image\_\-from\_\-grid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ mln::convert::mln\_\-image\_\-from\_\-grid (
\begin{DoxyParamCaption}
\item[{typename W::site::grid}]{, }
\item[{mln\_\-weight(W)}]{}
\end{DoxyParamCaption}
) const}}
\label{d7/da8/a02522_a52e760a16a6a13411f925222e642079e}


Convert a weighted window {\ttfamily w\_\-win} into an image. 

\hypertarget{a02522_a293f851b39088816b571af8c393fff82}{
\index{mln::convert@{mln::convert}!mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}}
\index{mln\_\-image\_\-from\_\-grid@{mln\_\-image\_\-from\_\-grid}!mln::convert@{mln::convert}}
\subsubsection[{mln\_\-image\_\-from\_\-grid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename N $>$ mln::convert::mln\_\-image\_\-from\_\-grid (
\begin{DoxyParamCaption}
\item[{typename N::site::grid}]{, }
\item[{bool}]{}
\end{DoxyParamCaption}
) const}}
\label{d7/da8/a02522_a293f851b39088816b571af8c393fff82}


Convert a neighborhood {\ttfamily nbh} into a binary image. 

\hypertarget{a02522_a7d9cc4d639a8d24029d135c1b4a26eee}{
\index{mln::convert@{mln::convert}!mln\_\-window@{mln\_\-window}}
\index{mln\_\-window@{mln\_\-window}!mln::convert@{mln::convert}}
\subsubsection[{mln\_\-window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename N $>$ mln::convert::mln\_\-window (
\begin{DoxyParamCaption}
\item[{N}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a7d9cc4d639a8d24029d135c1b4a26eee}


Convert a neighborhood {\ttfamily nbh} into a window. 



Definition at line 74 of file to\_\-window.hh.

\hypertarget{a02522_a2800eb8b5e044c4de0cbf0837be90bef}{
\index{mln::convert@{mln::convert}!to@{to}}
\index{to@{to}!mln::convert@{mln::convert}}
\subsubsection[{to}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T , typename O $>$ T mln::convert::to (
\begin{DoxyParamCaption}
\item[{const O \&}]{ from}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a2800eb8b5e044c4de0cbf0837be90bef}


Conversion of the object {\ttfamily from} towards an object with type {\ttfamily T}. 



Definition at line 63 of file to.hh.



References mln::mln\_\-exact().



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

\hypertarget{a02522_aba7c1ec93578553b4a913946b8b625e9}{
\index{mln::convert@{mln::convert}!to\_\-dpoint@{to\_\-dpoint}}
\index{to\_\-dpoint@{to\_\-dpoint}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-dpoint}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P $>$ P::dpoint mln::convert::to\_\-dpoint (
\begin{DoxyParamCaption}
\item[{const Point\_\-Site$<$ P $>$ \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_aba7c1ec93578553b4a913946b8b625e9}


Convert a point site {\ttfamily p} into a delta-\/point. 



Definition at line 52 of file to\_\-dpoint.hh.

\hypertarget{a02522_a12653912798b10f0a970667543fa4768}{
\index{mln::convert@{mln::convert}!to\_\-fun@{to\_\-fun}}
\index{to\_\-fun@{to\_\-fun}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-fun}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ pw::value\_\-$<$I$>$ {\bf mln::convert::to\_\-fun} (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima}
\end{DoxyParamCaption}
)}}
\label{d7/da8/a02522_a12653912798b10f0a970667543fa4768}


Convert an image into a function. 



Definition at line 64 of file to\_\-fun.hh.

\hypertarget{a02522_a70406098e4a9e2ab01fa871b1323413f}{
\index{mln::convert@{mln::convert}!to\_\-image@{to\_\-image}}
\index{to\_\-image@{to\_\-image}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-image}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf image1d}$<$unsigned$>$ mln::convert::to\_\-image (
\begin{DoxyParamCaption}
\item[{const histo::array$<$ T $>$ \&}]{ h}
\end{DoxyParamCaption}
)}}
\label{d7/da8/a02522_a70406098e4a9e2ab01fa871b1323413f}


Convert an histo {\ttfamily h} into an image1d$<$unsigned$>$. 

\hypertarget{a02522_aa9d8402122b0ff829a701db4e59ab88d}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-array@{to\_\-p\_\-array}}
\index{to\_\-p\_\-array@{to\_\-p\_\-array}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf p\_\-array}$<$ typename I::psite $>$ mln::convert::to\_\-p\_\-array (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ img}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_aa9d8402122b0ff829a701db4e59ab88d}


Convert an image {\ttfamily img} into a \hyperlink{a00300}{p\_\-array}. 



Definition at line 98 of file to\_\-p\_\-array.hh.



References mln::p\_\-array$<$ P $>$::append().

\hypertarget{a02522_ad10e38bfec4b600b166ad40fc6cd971d}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-array@{to\_\-p\_\-array}}
\index{to\_\-p\_\-array@{to\_\-p\_\-array}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ {\bf p\_\-array}$<$ typename S::psite $>$ mln::convert::to\_\-p\_\-array (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ pset}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ad10e38bfec4b600b166ad40fc6cd971d}


Convert a point set {\ttfamily pset} into a \hyperlink{a00300}{p\_\-array} (point set vector). 



Definition at line 68 of file to\_\-p\_\-array.hh.



References mln::p\_\-array$<$ P $>$::append().

\hypertarget{a02522_a177686fad8c37d5857407337a7ee37f9}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-array@{to\_\-p\_\-array}}
\index{to\_\-p\_\-array@{to\_\-p\_\-array}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-array}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ {\bf p\_\-array}$<$ typename W::psite $>$ mln::convert::to\_\-p\_\-array (
\begin{DoxyParamCaption}
\item[{const Window$<$ W $>$ \&}]{ win, }
\item[{const typename W::psite \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a177686fad8c37d5857407337a7ee37f9}


Convert a window {\ttfamily win} centered at point {\ttfamily p} into a \hyperlink{a00300}{p\_\-array} (point set vector). 



Definition at line 82 of file to\_\-p\_\-array.hh.



References mln::p\_\-array$<$ P $>$::append(), and mln::p\_\-array$<$ P $>$::reserve().

\hypertarget{a02522_adf02a3588b8e16bdafde41eaaa9117ae}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-set@{to\_\-p\_\-set}}
\index{to\_\-p\_\-set@{to\_\-p\_\-set}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename N $>$ {\bf p\_\-set}$<$ typename N::psite $>$ mln::convert::to\_\-p\_\-set (
\begin{DoxyParamCaption}
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_adf02a3588b8e16bdafde41eaaa9117ae}


Convert a neighborhood {\ttfamily nbh} into a site set. 



Definition at line 83 of file to\_\-p\_\-set.hh.



References mln::p\_\-set$<$ P $>$::insert().

\hypertarget{a02522_ae89675250902780a5afeedefcf7a79af}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-set@{to\_\-p\_\-set}}
\index{to\_\-p\_\-set@{to\_\-p\_\-set}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf p\_\-set}$<$ typename I::psite $>$ mln::convert::to\_\-p\_\-set (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ae89675250902780a5afeedefcf7a79af}


Convert a binary image {\ttfamily ima} into a site set. 



Definition at line 97 of file to\_\-p\_\-set.hh.



References mln::p\_\-set$<$ P $>$::insert().

\hypertarget{a02522_ad64168ccecf40d3c4dbd995300e9679c}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-set@{to\_\-p\_\-set}}
\index{to\_\-p\_\-set@{to\_\-p\_\-set}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename P , typename C $>$ {\bf p\_\-set}$<$ P $>$ mln::convert::to\_\-p\_\-set (
\begin{DoxyParamCaption}
\item[{const std::set$<$ P, C $>$ \&}]{ s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ad64168ccecf40d3c4dbd995300e9679c}


Convert an std::set {\ttfamily s} of sites into a site set. 

C is the comparison functor. 

Definition at line 130 of file to\_\-p\_\-set.hh.



References mln::p\_\-set$<$ P $>$::insert().

\hypertarget{a02522_ad06b1cf763b1f13470bcf7690086125d}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-set@{to\_\-p\_\-set}}
\index{to\_\-p\_\-set@{to\_\-p\_\-set}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ {\bf p\_\-set}$<$ typename S::psite $>$ mln::convert::to\_\-p\_\-set (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ ps}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ad06b1cf763b1f13470bcf7690086125d}


Convert any site set {\ttfamily ps} into a 'mlnp\_\-set' site set. 



Definition at line 144 of file to\_\-p\_\-set.hh.



References mln::p\_\-set$<$ P $>$::insert().

\hypertarget{a02522_a01b5e463d4b228a45b3699d4bf516922}{
\index{mln::convert@{mln::convert}!to\_\-p\_\-set@{to\_\-p\_\-set}}
\index{to\_\-p\_\-set@{to\_\-p\_\-set}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-p\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ {\bf p\_\-set}$<$ typename W::psite $>$ mln::convert::to\_\-p\_\-set (
\begin{DoxyParamCaption}
\item[{const Window$<$ W $>$ \&}]{ win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a01b5e463d4b228a45b3699d4bf516922}


Convert a \hyperlink{a00454}{Window} {\ttfamily win} into a site set. 



Definition at line 117 of file to\_\-p\_\-set.hh.



References mln::p\_\-set$<$ P $>$::insert().

\hypertarget{a02522_a8586389f38da0df99f546a5f2549cf05}{
\index{mln::convert@{mln::convert}!to\_\-qimage@{to\_\-qimage}}
\index{to\_\-qimage@{to\_\-qimage}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-qimage}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ QImage mln::convert::to\_\-qimage (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a8586389f38da0df99f546a5f2549cf05}


Convert a Milena image to a Qimage. 



Definition at line 279 of file to\_\-qimage.hh.

\hypertarget{a02522_a1d616ba468bca3c6a102eda9a042c7d0}{
\index{mln::convert@{mln::convert}!to\_\-upper\_\-window@{to\_\-upper\_\-window}}
\index{to\_\-upper\_\-window@{to\_\-upper\_\-window}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-upper\_\-window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename N $>$ {\bf window}$<$ typename N::dpoint $>$ mln::convert::to\_\-upper\_\-window (
\begin{DoxyParamCaption}
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a1d616ba468bca3c6a102eda9a042c7d0}


Convert a neighborhood {\ttfamily nbh} into an upper window. 



Definition at line 82 of file to\_\-upper\_\-window.hh.



References mln::window$<$ D $>$::insert().

\hypertarget{a02522_ad51a6ec95d7e37a21e2048f205838a45}{
\index{mln::convert@{mln::convert}!to\_\-upper\_\-window@{to\_\-upper\_\-window}}
\index{to\_\-upper\_\-window@{to\_\-upper\_\-window}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-upper\_\-window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ {\bf window}$<$ typename W::dpsite $>$ mln::convert::to\_\-upper\_\-window (
\begin{DoxyParamCaption}
\item[{const Window$<$ W $>$ \&}]{ win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ad51a6ec95d7e37a21e2048f205838a45}


Convert a window {\ttfamily nbh} into an upper window. 



Definition at line 67 of file to\_\-upper\_\-window.hh.



References mln::window$<$ D $>$::insert().

\hypertarget{a02522_a8a796018542526736a3bda5ff1f87948}{
\index{mln::convert@{mln::convert}!to\_\-window@{to\_\-window}}
\index{to\_\-window@{to\_\-window}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename D , typename C $>$ {\bf window}$<$ D $>$ mln::convert::to\_\-window (
\begin{DoxyParamCaption}
\item[{const std::set$<$ D, C $>$ \&}]{ s}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_a8a796018542526736a3bda5ff1f87948}


Convert an std::set {\ttfamily s} of delta-\/sites into a window. 



Definition at line 128 of file to\_\-window.hh.



References mln::window$<$ D $>$::insert().

\hypertarget{a02522_ae83c33548748a96f192178b896673fcd}{
\index{mln::convert@{mln::convert}!to\_\-window@{to\_\-window}}
\index{to\_\-window@{to\_\-window}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ {\bf window}$<$ typename I::site::dpsite $>$ mln::convert::to\_\-window (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ae83c33548748a96f192178b896673fcd}


Convert a binary image {\ttfamily ima} into a window. 



Definition at line 94 of file to\_\-window.hh.



References mln::window$<$ D $>$::insert().



Referenced by to\_\-window().

\hypertarget{a02522_ad85ebe20807e9eac3fc56d8697334b53}{
\index{mln::convert@{mln::convert}!to\_\-window@{to\_\-window}}
\index{to\_\-window@{to\_\-window}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-window}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ {\bf window}$<$ typename S::site::dpsite $>$ mln::convert::to\_\-window (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ pset}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_ad85ebe20807e9eac3fc56d8697334b53}


Convert a site set {\ttfamily pset} into a window. 



Definition at line 117 of file to\_\-window.hh.



References to\_\-window().



\subsection{Variable Documentation}
\hypertarget{a02522_afe4a9d8df272cef5abe2efaeb41cd130}{
\index{mln::convert@{mln::convert}!to\_\-fun@{to\_\-fun}}
\index{to\_\-fun@{to\_\-fun}!mln::convert@{mln::convert}}
\subsubsection[{to\_\-fun}]{\setlength{\rightskip}{0pt plus 5cm}pw::value\_\-$<$ I $>$ {\bf mln::convert::to\_\-fun}\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d7/da8/a02522_afe4a9d8df272cef5abe2efaeb41cd130}


Convert a C unary function into an mln::fun::C. 



Definition at line 45 of file to\_\-fun.hh.

