\hypertarget{a02623}{
\section{mln::io::ppm Namespace Reference}
\label{d4/d29/a02623}\index{mln::io::ppm@{mln::io::ppm}}
}


Namespace of ppm input/output handling.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02623_aad3ce5106b87ef85af234ae533d0654b}{load} (\hyperlink{a00044}{Image}$<$ I $>$ \&ima, const std::string \&filename)
\begin{DoxyCompactList}\small\item\em Load a ppm image in a Milena image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename V $>$ }\\\hyperlink{a00248}{image2d}$<$ V $>$ \hyperlink{a02623_a892d55391b459544a871eed7ff6f8e25}{load} (const std::string \&filename)
\begin{DoxyCompactList}\small\item\em Load a ppm image in a Milena image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02623_ad3c72bfdd95bed4491ae57150d49b5c1}{save} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima, const std::string \&filename)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of ppm input/output handling. 

\subsection{Function Documentation}
\hypertarget{a02623_aad3ce5106b87ef85af234ae533d0654b}{
\index{mln::io::ppm@{mln::io::ppm}!load@{load}}
\index{load@{load}!mln::io::ppm@{mln::io::ppm}}
\subsubsection[{load}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::io::ppm::load (
\begin{DoxyParamCaption}
\item[{Image$<$ I $>$ \&}]{ ima, }
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d29/a02623_aad3ce5106b87ef85af234ae533d0654b}


Load a ppm image in a Milena image. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[out]} {\em ima}]A reference to the image which will receive data. \item[\mbox{\tt[in]} {\em filename}]The source. \end{DoxyParams}


Definition at line 89 of file ppm/load.hh.

\hypertarget{a02623_a892d55391b459544a871eed7ff6f8e25}{
\index{mln::io::ppm@{mln::io::ppm}!load@{load}}
\index{load@{load}!mln::io::ppm@{mln::io::ppm}}
\subsubsection[{load}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename V $>$ {\bf image2d}$<$ V $>$ mln::io::ppm::load (
\begin{DoxyParamCaption}
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d29/a02623_a892d55391b459544a871eed7ff6f8e25}


Load a ppm image in a Milena image. 

To use this routine, you should specialize the template whith the value type of the image loaded. (ex : \hyperlink{a02623_aad3ce5106b87ef85af234ae533d0654b}{load$<$value::int\_\-u8$>$}(\char`\"{}...\char`\"{}))


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em filename}]The image source.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \hyperlink{a00248}{image2d} which contains loaded data. 
\end{DoxyReturn}


Definition at line 79 of file ppm/load.hh.

\hypertarget{a02623_ad3c72bfdd95bed4491ae57150d49b5c1}{
\index{mln::io::ppm@{mln::io::ppm}!save@{save}}
\index{save@{save}!mln::io::ppm@{mln::io::ppm}}
\subsubsection[{save}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::io::ppm::save (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima, }
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d4/d29/a02623_ad3c72bfdd95bed4491ae57150d49b5c1}
Save a Milena image as a ppm image.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em ima}]The image to save. \item[\mbox{\tt[in,out]} {\em filename}]the destination. \end{DoxyParams}


Definition at line 65 of file ppm/save.hh.



Referenced by mln::registration::icp().

