\hypertarget{a02616}{
\section{mln::io::pgm Namespace Reference}
\label{d6/dca/a02616}\index{mln::io::pgm@{mln::io::pgm}}
}


Namespace of pgm input/output handling.  


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


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

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


Load a pgm 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 87 of file pgm/load.hh.

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


Load a pgm image in a Milena image. 

To use this routine, you should specialize the template whith the value type of the image loaded. (ex : \hyperlink{a02616_a92fc8ec08a2573efe2fb4ba40ee94660}{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 77 of file pgm/load.hh.

\hypertarget{a02616_a691130a83212f73e324ad866cc163dca}{
\index{mln::io::pgm@{mln::io::pgm}!save@{save}}
\index{save@{save}!mln::io::pgm@{mln::io::pgm}}
\subsubsection[{save}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::io::pgm::save (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima, }
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/dca/a02616_a691130a83212f73e324ad866cc163dca}
Save a Milena image as a pgm 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 77 of file pgm/save.hh.

