\section{Image\+Info Class Reference}
\label{classmlpack_1_1data_1_1ImageInfo}\index{Image\+Info@{Image\+Info}}


Implements meta-\/data of images required by \doxyref{data\+::\+Load}{p.}{namespacemlpack_1_1data_a19805d6585ac8b0be7c4e4b7f081977c} and \doxyref{data\+::\+Save}{p.}{namespacemlpack_1_1data_a16bc794b14db0ab126595b19a32a5bc0} for loading and saving images into arma\+::\+Mat.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Image\+Info} (const size\+\_\+t width=0, const size\+\_\+t height=0, const size\+\_\+t channels=3, const size\+\_\+t quality=90)
\begin{DoxyCompactList}\small\item\em Instantiate the \doxyref{Image\+Info}{p.}{classmlpack_1_1data_1_1ImageInfo} object with the given image width, height, number of channels and quality parameter. \end{DoxyCompactList}\item 
const size\+\_\+t \& \textbf{ Channels} () const
\begin{DoxyCompactList}\small\item\em Get the image channels. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Channels} ()
\begin{DoxyCompactList}\small\item\em Modify the image channels. \end{DoxyCompactList}\item 
const size\+\_\+t \& \textbf{ Height} () const
\begin{DoxyCompactList}\small\item\em Get the image height. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Height} ()
\begin{DoxyCompactList}\small\item\em Modify the image height. \end{DoxyCompactList}\item 
const size\+\_\+t \& \textbf{ Quality} () const
\begin{DoxyCompactList}\small\item\em Get the image quality. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Quality} ()
\begin{DoxyCompactList}\small\item\em Modify the image quality. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\item 
const size\+\_\+t \& \textbf{ Width} () const
\begin{DoxyCompactList}\small\item\em Get the image width. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Width} ()
\begin{DoxyCompactList}\small\item\em Modify the image width. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements meta-\/data of images required by \doxyref{data\+::\+Load}{p.}{namespacemlpack_1_1data_a19805d6585ac8b0be7c4e4b7f081977c} and \doxyref{data\+::\+Save}{p.}{namespacemlpack_1_1data_a16bc794b14db0ab126595b19a32a5bc0} for loading and saving images into arma\+::\+Mat. 

Definition at line 36 of file image\+\_\+info.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1data_1_1ImageInfo_a2b9fef0335337362dd24688bda90b848}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Image\+Info@{Image\+Info}}
\index{Image\+Info@{Image\+Info}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Image\+Info()}
{\footnotesize\ttfamily \textbf{ Image\+Info} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{width = {\ttfamily 0},  }\item[{const size\+\_\+t}]{height = {\ttfamily 0},  }\item[{const size\+\_\+t}]{channels = {\ttfamily 3},  }\item[{const size\+\_\+t}]{quality = {\ttfamily 90} }\end{DoxyParamCaption})}



Instantiate the \doxyref{Image\+Info}{p.}{classmlpack_1_1data_1_1ImageInfo} object with the given image width, height, number of channels and quality parameter. 


\begin{DoxyParams}{Parameters}
{\em width} & Image width. \\
\hline
{\em height} & Image height. \\
\hline
{\em channels} & Number of channels in the image. \\
\hline
{\em quality} & Compression of the image if saved as jpg (0 -\/ 100). \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1data_1_1ImageInfo_a0b21567b7c902a872cff8193e396ec5d}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Channels@{Channels}}
\index{Channels@{Channels}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Channels()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const size\+\_\+t\& Channels (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the image channels. 



Definition at line 64 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_a74cae78c7b467252fd34c15160f027ee}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Channels@{Channels}}
\index{Channels@{Channels}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Channels()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Channels (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the image channels. 



Definition at line 66 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_ad06eef93e982f0f9f9312464043fc873}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Height@{Height}}
\index{Height@{Height}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Height()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const size\+\_\+t\& Height (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the image height. 



Definition at line 59 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_ab23737eeb70ec76db473d42fd4fa8905}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Height@{Height}}
\index{Height@{Height}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Height()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Height (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the image height. 



Definition at line 61 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_a2226c9cc747af961fc72ef9b55a5e255}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Quality@{Quality}}
\index{Quality@{Quality}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Quality()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const size\+\_\+t\& Quality (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the image quality. 



Definition at line 69 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_ac90d7f5369f20a73a6c6f7247736f9a0}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Quality@{Quality}}
\index{Quality@{Quality}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Quality()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Quality (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the image quality. 



Definition at line 71 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 74 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_a80c271716b539e82241223b6d71f6fda}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Width@{Width}}
\index{Width@{Width}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Width()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const size\+\_\+t\& Width (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the image width. 



Definition at line 54 of file image\+\_\+info.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1ImageInfo_aaa9870b05022ad86e12932d89b270437}} 
\index{mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}!Width@{Width}}
\index{Width@{Width}!mlpack\+::data\+::\+Image\+Info@{mlpack\+::data\+::\+Image\+Info}}
\subsubsection{Width()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Width (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the image width. 



Definition at line 56 of file image\+\_\+info.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/core/data/\textbf{ image\+\_\+info.\+hpp}\end{DoxyCompactItemize}
