\hypertarget{a00203}{
\section{mln::fun::v2v::rgb8\_\-to\_\-rgbn$<$ n $>$ Struct Template Reference}
\label{de/d79/a00203}\index{mln::fun::v2v::rgb8\_\-to\_\-rgbn@{mln::fun::v2v::rgb8\_\-to\_\-rgbn}}
}


Convert a rgb8 value to a rgn, n $<$ 8.  




{\ttfamily \#include $<$rgb8\_\-to\_\-rgbn.hh$>$}



Inheritance diagram for mln::fun::v2v::rgb8\_\-to\_\-rgbn$<$ n $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{d3/d93/a03829}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00431}{result} \hyperlink{a00203_a29fb0d9d4dd6551131105c00cfd554e0}{operator()} (const \hyperlink{a00431}{argument} \&c) const 
\begin{DoxyCompactList}\small\item\em Convert a rgb8 value to a rgn, n $<$ 8. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$unsigned n$>$ struct mln::fun::v2v::rgb8\_\-to\_\-rgbn$<$ n $>$}

Convert a rgb8 value to a rgn, n $<$ 8. 
\begin{DoxyParams}{Parameters}
\item[{\em n}]defines the output quantification used for the transformation. \end{DoxyParams}


Definition at line 56 of file rgb8\_\-to\_\-rgbn.hh.



\subsection{Member Function Documentation}
\hypertarget{a00203_a29fb0d9d4dd6551131105c00cfd554e0}{
\index{mln::fun::v2v::rgb8\_\-to\_\-rgbn@{mln::fun::v2v::rgb8\_\-to\_\-rgbn}!operator()@{operator()}}
\index{operator()@{operator()}!mln::fun::v2v::rgb8_to_rgbn@{mln::fun::v2v::rgb8\_\-to\_\-rgbn}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf rgb8\_\-to\_\-rgbn}$<$ n $>$::{\bf result} {\bf mln::fun::v2v::rgb8\_\-to\_\-rgbn}$<$ n $>$::operator() (
\begin{DoxyParamCaption}
\item[{const {\bf argument} \&}]{ c}
\end{DoxyParamCaption}
) const}}
\label{de/d79/a00203_a29fb0d9d4dd6551131105c00cfd554e0}


Convert a rgb8 value to a rgn, n $<$ 8. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em v}]the rgb8 value to convert.\end{DoxyParams}
Conversion is done by computing the size by which we divide each rgb component.


\begin{DoxyParams}{Parameters}
\item[{\em n}]defines the output quantification used for the transformation. \end{DoxyParams}


Definition at line 83 of file rgb8\_\-to\_\-rgbn.hh.



References mln::value::rgb$<$ n $>$::red().

