\hypertarget{a00441}{
\section{mln::violent\_\-cast\_\-image$<$ T, I $>$ Struct Template Reference}
\label{d6/d66/a00441}\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}}
}


Violently cast image values to a given type.  




{\ttfamily \#include $<$violent\_\-cast\_\-image.hh$>$}



Inherits image\_\-value\_\-morpher$<$ I, T, violent\_\-cast\_\-image$<$ T, I $>$ $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef T \hyperlink{a00441_ade7953981a3cca2f1bfdc47e03e518e5}{lvalue}
\begin{DoxyCompactList}\small\item\em Return type of read-\/write access. \item\end{DoxyCompactList}\item 
typedef T \hyperlink{a00441_ac40a3ed1d79ad284f4ec6dcf8bd5ff3f}{rvalue}
\begin{DoxyCompactList}\small\item\em Return type of read-\/only access. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00441}{violent\_\-cast\_\-image}$<$ tag::value\_\-$<$ T $>$, tag::image\_\-$<$ I $>$ $>$ \hyperlink{a00441_adf3bbd91b4b304cf0b91b1248097056c}{skeleton}
\begin{DoxyCompactList}\small\item\em Skeleton. \item\end{DoxyCompactList}\item 
typedef T \hyperlink{a00441_a3c2fc43fa10cf1d70f434ff012ea1991}{value}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00418}{Value} associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
T \hyperlink{a00441_a96ddf9d49c1eee6f24b544952c4851d2}{operator()} (const typename I::psite \&p) const 
\begin{DoxyCompactList}\small\item\em Read-\/only access of pixel value at point site {\ttfamily p}. \item\end{DoxyCompactList}\item 
T \hyperlink{a00441_a728fa4359200742fbea7ab936f00fe2e}{operator()} (const typename I::psite \&p)
\begin{DoxyCompactList}\small\item\em Mutable access is only OK for reading (not writing). \item\end{DoxyCompactList}\item 
\hyperlink{a00441_a5dd724b7d023bdd194a5ced17ea965dc}{violent\_\-cast\_\-image} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T, typename I$>$ struct mln::violent\_\-cast\_\-image$<$ T, I $>$}

Violently cast image values to a given type. 

Definition at line 112 of file violent\_\-cast\_\-image.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00441_ade7953981a3cca2f1bfdc47e03e518e5}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!lvalue@{lvalue}}
\index{lvalue@{lvalue}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{lvalue}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T, typename I$>$ typedef T {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::{\bf lvalue}}}
\label{d6/d66/a00441_ade7953981a3cca2f1bfdc47e03e518e5}


Return type of read-\/write access. 



Definition at line 122 of file violent\_\-cast\_\-image.hh.

\hypertarget{a00441_ac40a3ed1d79ad284f4ec6dcf8bd5ff3f}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!rvalue@{rvalue}}
\index{rvalue@{rvalue}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{rvalue}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T, typename I$>$ typedef T {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::{\bf rvalue}}}
\label{d6/d66/a00441_ac40a3ed1d79ad284f4ec6dcf8bd5ff3f}


Return type of read-\/only access. 



Definition at line 119 of file violent\_\-cast\_\-image.hh.

\hypertarget{a00441_adf3bbd91b4b304cf0b91b1248097056c}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!skeleton@{skeleton}}
\index{skeleton@{skeleton}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{skeleton}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T, typename I$>$ typedef {\bf violent\_\-cast\_\-image}$<$ tag::value\_\-$<$T$>$, tag::image\_\-$<$I$>$ $>$ {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::{\bf skeleton}}}
\label{d6/d66/a00441_adf3bbd91b4b304cf0b91b1248097056c}


Skeleton. 



Definition at line 125 of file violent\_\-cast\_\-image.hh.

\hypertarget{a00441_a3c2fc43fa10cf1d70f434ff012ea1991}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!value@{value}}
\index{value@{value}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T, typename I$>$ typedef T {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::{\bf value}}}
\label{d6/d66/a00441_a3c2fc43fa10cf1d70f434ff012ea1991}


\hyperlink{a00418}{Value} associated type. 



Definition at line 116 of file violent\_\-cast\_\-image.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00441_a5dd724b7d023bdd194a5ced17ea965dc}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!violent\_\-cast\_\-image@{violent\_\-cast\_\-image}}
\index{violent\_\-cast\_\-image@{violent\_\-cast\_\-image}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{violent\_\-cast\_\-image}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T , typename I $>$ {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::{\bf violent\_\-cast\_\-image} (
\begin{DoxyParamCaption}
\item[{const {\bf Image}$<$ I $>$ \&}]{ ima}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/d66/a00441_a5dd724b7d023bdd194a5ced17ea965dc}


Constructor. 



Definition at line 172 of file violent\_\-cast\_\-image.hh.



\subsection{Member Function Documentation}
\hypertarget{a00441_a96ddf9d49c1eee6f24b544952c4851d2}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!operator()@{operator()}}
\index{operator()@{operator()}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T , typename I $>$ T {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::operator() (
\begin{DoxyParamCaption}
\item[{const typename I::psite \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/d66/a00441_a96ddf9d49c1eee6f24b544952c4851d2}


Read-\/only access of pixel value at point site {\ttfamily p}. 



Definition at line 191 of file violent\_\-cast\_\-image.hh.

\hypertarget{a00441_a728fa4359200742fbea7ab936f00fe2e}{
\index{mln::violent\_\-cast\_\-image@{mln::violent\_\-cast\_\-image}!operator()@{operator()}}
\index{operator()@{operator()}!mln::violent_cast_image@{mln::violent\_\-cast\_\-image}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T , typename I $>$ T {\bf mln::violent\_\-cast\_\-image}$<$ T, I $>$::operator() (
\begin{DoxyParamCaption}
\item[{const typename I::psite \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d6/d66/a00441_a728fa4359200742fbea7ab936f00fe2e}


Mutable access is only OK for reading (not writing). 



Definition at line 200 of file violent\_\-cast\_\-image.hh.

