\hypertarget{a02605}{
\section{mln::io::off Namespace Reference}
\label{dd/d20/a02605}\index{mln::io::off@{mln::io::off}}
}


Namespace of off input/output handling.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a02605_a6b89f0381800b3b4af3f5d5f369c6f39}{load} (\hyperlink{a00151}{bin\_\-2complex\_\-image3df} \&ima, const std::string \&filename)
\begin{DoxyCompactList}\small\item\em Load a (binary) OFF image into a complex image. \item\end{DoxyCompactList}\item 
void \hyperlink{a02605_a986b9ed87308961ba66ba6e14b0635ae}{save} (const \hyperlink{a00151}{bin\_\-2complex\_\-image3df} \&ima, const std::string \&filename)
\begin{DoxyCompactList}\small\item\em Save a (binary) OFF image into a complex image. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I $>$ }\\void \hyperlink{a02605_ad301c280b4a9235ddbc5f3d030c0854d}{save\_\-bin\_\-alt} (const I \&ima, const std::string \&filename)
\begin{DoxyCompactList}\small\item\em FIXME: Similar to \hyperlink{a02605_a986b9ed87308961ba66ba6e14b0635ae}{mln::io::off::save(const bin\_\-2complex\_\-image3df\&, const std::string\&)}, but does not save faces whose value is `false'. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


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

\subsection{Function Documentation}
\hypertarget{a02605_a6b89f0381800b3b4af3f5d5f369c6f39}{
\index{mln::io::off@{mln::io::off}!load@{load}}
\index{load@{load}!mln::io::off@{mln::io::off}}
\subsubsection[{load}]{\setlength{\rightskip}{0pt plus 5cm}void mln::io::off::load (
\begin{DoxyParamCaption}
\item[{bin\_\-2complex\_\-image3df \&}]{ ima, }
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)}}
\label{dd/d20/a02605_a6b89f0381800b3b4af3f5d5f369c6f39}


Load a (binary) OFF image into a complex image. 

Load a 3x8-\/bit RGB (color) OFF image into a complex image.

Load a floating-\/point OFF image into a complex image.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[out]} {\em ima}]A reference to the image to construct. \item[\mbox{\tt[in]} {\em filename}]The name of the file to load.\end{DoxyParams}
The image is said binary since data only represent the existence of faces.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[out]} {\em ima}]A reference to the image to construct. \item[\mbox{\tt[in]} {\em filename}]The name of the file to load.\end{DoxyParams}
Read floating-\/point data is attached to 2-\/faces only; 1-\/faces and 0-\/faces are set to 0.0f. 

Definition at line 195 of file off/load.hh.

\hypertarget{a02605_a986b9ed87308961ba66ba6e14b0635ae}{
\index{mln::io::off@{mln::io::off}!save@{save}}
\index{save@{save}!mln::io::off@{mln::io::off}}
\subsubsection[{save}]{\setlength{\rightskip}{0pt plus 5cm}void mln::io::off::save (
\begin{DoxyParamCaption}
\item[{const bin\_\-2complex\_\-image3df \&}]{ ima, }
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)}}
\label{dd/d20/a02605_a986b9ed87308961ba66ba6e14b0635ae}


Save a (binary) OFF image into a complex image. 

Save a 3x8-\/bit RGB (color) OFF image into a complex image.

Save a floating-\/point value grey-\/level OFF image into a complex image.

Save an 8-\/bit grey-\/level OFF image into a complex image.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em ima}]The image to save. \item[\mbox{\tt[in]} {\em filename}]The name of the file where to save the image.\end{DoxyParams}
The image is said binary since data represent only the existence of faces.


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em ima}]The image to save. \item[\mbox{\tt[in]} {\em filename}]The name of the file where to save the image.\end{DoxyParams}
Only data is attached to 2-\/faces is saved; the OFF file cannot store data attached to faces of other dimensions. 

Definition at line 189 of file off/save.hh.

\hypertarget{a02605_ad301c280b4a9235ddbc5f3d030c0854d}{
\index{mln::io::off@{mln::io::off}!save\_\-bin\_\-alt@{save\_\-bin\_\-alt}}
\index{save\_\-bin\_\-alt@{save\_\-bin\_\-alt}!mln::io::off@{mln::io::off}}
\subsubsection[{save\_\-bin\_\-alt}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ void mln::io::off::save\_\-bin\_\-alt (
\begin{DoxyParamCaption}
\item[{const I \&}]{ ima, }
\item[{const std::string \&}]{ filename}
\end{DoxyParamCaption}
)}}
\label{dd/d20/a02605_ad301c280b4a9235ddbc5f3d030c0854d}


FIXME: Similar to \hyperlink{a02605_a986b9ed87308961ba66ba6e14b0635ae}{mln::io::off::save(const bin\_\-2complex\_\-image3df\&, const std::string\&)}, but does not save faces whose value is `false'. 



Definition at line 59 of file save\_\-bin\_\-alt.hh.

