\hypertarget{a00431}{
\section{mln::value::rgb$<$ n $>$ Struct Template Reference}
\label{df/d70/a00431}\index{mln::value::rgb@{mln::value::rgb}}
}


Color class for red-\/green-\/blue where every component is n-\/bit encoded.  




{\ttfamily \#include $<$rgb.hh$>$}



Inherits mln::value::Vectorial$<$ rgb$<$ n $>$ $>$, and mln::value::internal::value\_\-like\_\-$<$ algebra::vec$<$ 3, int\_\-u$<$ n $>$ $>$,algebra::vec$<$ 3, int\_\-u$<$ n $>$ $>$,algebra::vec$<$ 3, int $>$,rgb$<$ n $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00431}{rgb}$<$ n $>$ \& \hyperlink{a00431_a7893fea08756f2af2a170c9bb7d1e509}{operator=} (const \hyperlink{a00431}{rgb}$<$ n $>$ \&rhs)
\begin{DoxyCompactList}\small\item\em Assignment. \item\end{DoxyCompactList}\item 
\hyperlink{a00431_a09728bd90be894c34c97397756353066}{rgb} (const algebra::vec$<$ 3, int $>$ \&rhs)
\begin{DoxyCompactList}\small\item\em Constructor from a algebra::vec. \item\end{DoxyCompactList}\item 
\hyperlink{a00431_a0057ddd69a5a70d2c254ada73c23e5d8}{rgb} (int r, int g, int b)
\begin{DoxyCompactList}\small\item\em Constructor from component values. \item\end{DoxyCompactList}\item 
\hyperlink{a00431_af984fe10405e4395151d58e68b05cf00}{rgb} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00424}{int\_\-u}$<$ n $>$ \hyperlink{a00431_afa2d055a4f36b711258a1c427786225f}{red} () const 
\begin{DoxyCompactList}\small\item\em Acces to red/green/blue component. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
\hyperlink{a00431_a0de8cc448b64b94781d1ef20d4a9efdf}{rgb} (const \hyperlink{a00278}{mln::literal::white\_\-t} \&)
\begin{DoxyCompactList}\small\item\em Constructors with literals. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const \hyperlink{a00431}{rgb}$<$ n $>$ \hyperlink{a00431_a4354aa8096e1861b36b7de90097bbd29}{zero}
\begin{DoxyCompactList}\small\item\em Zero value. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$unsigned n$>$ struct mln::value::rgb$<$ n $>$}

Color class for red-\/green-\/blue where every component is n-\/bit encoded. 

Definition at line 248 of file value/rgb.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00431_af984fe10405e4395151d58e68b05cf00}{
\index{mln::value::rgb@{mln::value::rgb}!rgb@{rgb}}
\index{rgb@{rgb}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{rgb}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::rgb}$<$ n $>$::{\bf rgb} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d70/a00431_af984fe10405e4395151d58e68b05cf00}


Constructor without argument. 



Definition at line 422 of file value/rgb.hh.

\hypertarget{a00431_a0057ddd69a5a70d2c254ada73c23e5d8}{
\index{mln::value::rgb@{mln::value::rgb}!rgb@{rgb}}
\index{rgb@{rgb}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{rgb}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::rgb}$<$ n $>$::{\bf rgb} (
\begin{DoxyParamCaption}
\item[{int}]{ r, }
\item[{int}]{ g, }
\item[{int}]{ b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d70/a00431_a0057ddd69a5a70d2c254ada73c23e5d8}


Constructor from component values. 



Definition at line 458 of file value/rgb.hh.

\hypertarget{a00431_a09728bd90be894c34c97397756353066}{
\index{mln::value::rgb@{mln::value::rgb}!rgb@{rgb}}
\index{rgb@{rgb}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{rgb}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::rgb}$<$ n $>$::{\bf rgb} (
\begin{DoxyParamCaption}
\item[{const algebra::vec$<$ 3, int $>$ \&}]{ rhs}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d70/a00431_a09728bd90be894c34c97397756353066}


Constructor from a algebra::vec. 



Definition at line 428 of file value/rgb.hh.

\hypertarget{a00431_a0de8cc448b64b94781d1ef20d4a9efdf}{
\index{mln::value::rgb@{mln::value::rgb}!rgb@{rgb}}
\index{rgb@{rgb}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{rgb}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf mln::value::rgb}$<$ n $>$::{\bf rgb} (
\begin{DoxyParamCaption}
\item[{const {\bf mln::literal::white\_\-t} \&}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d70/a00431_a0de8cc448b64b94781d1ef20d4a9efdf}


Constructors with literals. 



Definition at line 473 of file value/rgb.hh.



\subsection{Member Function Documentation}
\hypertarget{a00431_a7893fea08756f2af2a170c9bb7d1e509}{
\index{mln::value::rgb@{mln::value::rgb}!operator=@{operator=}}
\index{operator=@{operator=}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf rgb}$<$ n $>$ \& {\bf mln::value::rgb}$<$ n $>$::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf rgb}$<$ n $>$ \&}]{ rhs}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d70/a00431_a7893fea08756f2af2a170c9bb7d1e509}


Assignment. 



Definition at line 645 of file value/rgb.hh.

\hypertarget{a00431_afa2d055a4f36b711258a1c427786225f}{
\index{mln::value::rgb@{mln::value::rgb}!red@{red}}
\index{red@{red}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{red}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ {\bf int\_\-u}$<$n$>$ {\bf mln::value::rgb}$<$ n $>$::red (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{df/d70/a00431_afa2d055a4f36b711258a1c427786225f}


Acces to red/green/blue component. 



Definition at line 264 of file value/rgb.hh.



Referenced by mln::fun::v2v::rgb8\_\-to\_\-rgbn$<$ n $>$::operator()().



\subsection{Member Data Documentation}
\hypertarget{a00431_a4354aa8096e1861b36b7de90097bbd29}{
\index{mln::value::rgb@{mln::value::rgb}!zero@{zero}}
\index{zero@{zero}!mln::value::rgb@{mln::value::rgb}}
\subsubsection[{zero}]{\setlength{\rightskip}{0pt plus 5cm}template$<$unsigned n$>$ const {\bf rgb}$<$ n $>$ {\bf mln::value::rgb}$<$ n $>$::{\bf zero}\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{df/d70/a00431_a4354aa8096e1861b36b7de90097bbd29}


Zero value. 



Definition at line 322 of file value/rgb.hh.

