\hypertarget{a00247}{
\section{mln::image1d$<$ T $>$ Struct Template Reference}
\label{d0/d1f/a00247}\index{mln::image1d@{mln::image1d}}
}


Basic 1D image class.  




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



Inherits image\_\-primary$<$ T, box1d, image1d$<$ T $>$ $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef T \& \hyperlink{a00247_a2a86e5bfed32baeebbe977e41527b2c6}{lvalue}
\begin{DoxyCompactList}\small\item\em Return type of read-\/write access. \item\end{DoxyCompactList}\item 
typedef const T \& \hyperlink{a00247_ad29d6759ed95840e2ac9583ea6588f07}{rvalue}
\begin{DoxyCompactList}\small\item\em Return type of read-\/only access. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00247}{image1d}$<$ tag::value\_\-$<$ T $>$ $>$ \hyperlink{a00247_a822cbe2c4405d2e528761281897f2099}{skeleton}
\begin{DoxyCompactList}\small\item\em Skeleton. \item\end{DoxyCompactList}\item 
typedef T \hyperlink{a00247_a9cb55e30a85d48de5f252e272ee4793d}{value}
\begin{DoxyCompactList}\small\item\em \hyperlink{a00418}{Value} associated type. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{a00135}{box1d} \& \hyperlink{a00247_abd532accff62300ee9bc402bb389d08c}{bbox} () const 
\begin{DoxyCompactList}\small\item\em Give the bounding box domain. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00247_afc085adbb613ec72b4d080e1a5950f2c}{border} () const 
\begin{DoxyCompactList}\small\item\em Give the border thickness. \item\end{DoxyCompactList}\item 
const T $\ast$ \hyperlink{a00247_af380bf95036c7b5bd79b1fe3db21390e}{buffer} () const 
\begin{DoxyCompactList}\small\item\em Give a hook to the value buffer. \item\end{DoxyCompactList}\item 
T $\ast$ \hyperlink{a00247_aa0808255fdea783082b58b20fdfc6517}{buffer} ()
\begin{DoxyCompactList}\small\item\em Give a hook to the value buffer. \item\end{DoxyCompactList}\item 
int \hyperlink{a00247_a655cbd2fc2120cee31af0a72419ee814}{delta\_\-index} (const \hyperlink{a00178}{dpoint1d} \&dp) const 
\begin{DoxyCompactList}\small\item\em Give the offset corresponding to the delta-\/point {\ttfamily dp}. \item\end{DoxyCompactList}\item 
const \hyperlink{a00135}{box1d} \& \hyperlink{a00247_af8e1f8d32c4052255f997b660bfc975d}{domain} () const 
\begin{DoxyCompactList}\small\item\em Give the definition domain. \item\end{DoxyCompactList}\item 
const T \& \hyperlink{a00247_a92a464cabf2ae69089da84a22503e51f}{element} (unsigned i) const 
\begin{DoxyCompactList}\small\item\em Read-\/only access to the {\ttfamily i-\/th} image value (including the border). \item\end{DoxyCompactList}\item 
T \& \hyperlink{a00247_ad444f4926ea0f737ee1facdba398f15e}{element} (unsigned i)
\begin{DoxyCompactList}\small\item\em Read-\/write access to the {\ttfamily i-\/th} image value (including the border). \item\end{DoxyCompactList}\item 
bool \hyperlink{a00247_ac02bc55835df4a09984f8736bb7844b8}{has} (const \hyperlink{a00330}{point1d} \&p) const 
\begin{DoxyCompactList}\small\item\em Test if {\ttfamily p} is valid. \item\end{DoxyCompactList}\item 
\hyperlink{a00247_a0e8c0a1405f1913711cdcd41cdd6f43c}{image1d} ()
\begin{DoxyCompactList}\small\item\em Constructor without argument. \item\end{DoxyCompactList}\item 
\hyperlink{a00247_a27443018cf849c5e1167f6422e16c741}{image1d} (const \hyperlink{a00135}{box1d} \&b, unsigned bdr=border::thickness)
\begin{DoxyCompactList}\small\item\em Constructor with a box and the border thickness. \item\end{DoxyCompactList}\item 
\hyperlink{a00247_a66a3dd2f270db743a651f2ad5fac63c8}{image1d} (unsigned ninds, unsigned bdr=border::thickness)
\begin{DoxyCompactList}\small\item\em Constructor with the number of indices and the border thickness. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00247_a86a6acca33da00e22ce77e05e6a962cc}{nelements} () const 
\begin{DoxyCompactList}\small\item\em Give the number of cells (points including border ones). \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00247_ac98d67898ec5ee828f6c53baac6d2f2d}{ninds} () const 
\begin{DoxyCompactList}\small\item\em Give the number of indexes. \item\end{DoxyCompactList}\item 
T \& \hyperlink{a00247_a6777cedc7737c422cad213afe3a98213}{operator()} (const \hyperlink{a00330}{point1d} \&p)
\begin{DoxyCompactList}\small\item\em Read-\/write access to the image value located at point {\ttfamily p}. \item\end{DoxyCompactList}\item 
const T \& \hyperlink{a00247_af25bd4afa4b71cb6a1050015c31f1c88}{operator()} (const \hyperlink{a00330}{point1d} \&p) const 
\begin{DoxyCompactList}\small\item\em Read-\/only access to the image value located at point {\ttfamily p}. \item\end{DoxyCompactList}\item 
\hyperlink{a00330}{point1d} \hyperlink{a00247_a73b180151b67978d0d0ae4062ce92862}{point\_\-at\_\-index} (unsigned i) const 
\begin{DoxyCompactList}\small\item\em Give the point corresponding to the offset {\ttfamily o}. \item\end{DoxyCompactList}\item 
const \hyperlink{a00135}{box1d} \& \hyperlink{a00247_a7c4f57fa12dc9979d3e4c951e4abbe88}{vbbox} () const 
\begin{DoxyCompactList}\small\item\em virtual box, i.e., box including the virtual border \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$ struct mln::image1d$<$ T $>$}

Basic 1D image class. The parameter {\ttfamily T} is the type of pixel values. This image class stores data in memory and has a virtual border with constant thickness before and after data. 

Definition at line 155 of file image1d.hh.



\subsection{Member Typedef Documentation}
\hypertarget{a00247_a2a86e5bfed32baeebbe977e41527b2c6}{
\index{mln::image1d@{mln::image1d}!lvalue@{lvalue}}
\index{lvalue@{lvalue}!mln::image1d@{mln::image1d}}
\subsubsection[{lvalue}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ typedef T\& {\bf mln::image1d}$<$ T $>$::{\bf lvalue}}}
\label{d0/d1f/a00247_a2a86e5bfed32baeebbe977e41527b2c6}


Return type of read-\/write access. 



Definition at line 167 of file image1d.hh.

\hypertarget{a00247_ad29d6759ed95840e2ac9583ea6588f07}{
\index{mln::image1d@{mln::image1d}!rvalue@{rvalue}}
\index{rvalue@{rvalue}!mln::image1d@{mln::image1d}}
\subsubsection[{rvalue}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ typedef const T\& {\bf mln::image1d}$<$ T $>$::{\bf rvalue}}}
\label{d0/d1f/a00247_ad29d6759ed95840e2ac9583ea6588f07}


Return type of read-\/only access. 



Definition at line 164 of file image1d.hh.

\hypertarget{a00247_a822cbe2c4405d2e528761281897f2099}{
\index{mln::image1d@{mln::image1d}!skeleton@{skeleton}}
\index{skeleton@{skeleton}!mln::image1d@{mln::image1d}}
\subsubsection[{skeleton}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ typedef {\bf image1d}$<$ tag::value\_\-$<$T$>$ $>$ {\bf mln::image1d}$<$ T $>$::{\bf skeleton}}}
\label{d0/d1f/a00247_a822cbe2c4405d2e528761281897f2099}


Skeleton. 



Definition at line 170 of file image1d.hh.

\hypertarget{a00247_a9cb55e30a85d48de5f252e272ee4793d}{
\index{mln::image1d@{mln::image1d}!value@{value}}
\index{value@{value}!mln::image1d@{mln::image1d}}
\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T$>$ typedef T {\bf mln::image1d}$<$ T $>$::{\bf value}}}
\label{d0/d1f/a00247_a9cb55e30a85d48de5f252e272ee4793d}


\hyperlink{a00418}{Value} associated type. 



Definition at line 161 of file image1d.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00247_a0e8c0a1405f1913711cdcd41cdd6f43c}{
\index{mln::image1d@{mln::image1d}!image1d@{image1d}}
\index{image1d@{image1d}!mln::image1d@{mln::image1d}}
\subsubsection[{image1d}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf mln::image1d}$<$ T $>$::{\bf image1d} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a0e8c0a1405f1913711cdcd41cdd6f43c}


Constructor without argument. 



Definition at line 371 of file image1d.hh.

\hypertarget{a00247_a66a3dd2f270db743a651f2ad5fac63c8}{
\index{mln::image1d@{mln::image1d}!image1d@{image1d}}
\index{image1d@{image1d}!mln::image1d@{mln::image1d}}
\subsubsection[{image1d}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf mln::image1d}$<$ T $>$::{\bf image1d} (
\begin{DoxyParamCaption}
\item[{unsigned}]{ ninds, }
\item[{unsigned}]{ bdr = {\ttfamily border::thickness}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a66a3dd2f270db743a651f2ad5fac63c8}


Constructor with the number of indices and the border thickness. 



Definition at line 384 of file image1d.hh.



References mln::make::box1d().

\hypertarget{a00247_a27443018cf849c5e1167f6422e16c741}{
\index{mln::image1d@{mln::image1d}!image1d@{image1d}}
\index{image1d@{image1d}!mln::image1d@{mln::image1d}}
\subsubsection[{image1d}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf mln::image1d}$<$ T $>$::{\bf image1d} (
\begin{DoxyParamCaption}
\item[{const {\bf box1d} \&}]{ b, }
\item[{unsigned}]{ bdr = {\ttfamily border::thickness}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a27443018cf849c5e1167f6422e16c741}


Constructor with a box and the border thickness. 



Definition at line 377 of file image1d.hh.



\subsection{Member Function Documentation}
\hypertarget{a00247_abd532accff62300ee9bc402bb389d08c}{
\index{mln::image1d@{mln::image1d}!bbox@{bbox}}
\index{bbox@{bbox}!mln::image1d@{mln::image1d}}
\subsubsection[{bbox}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const {\bf box1d} \& {\bf mln::image1d}$<$ T $>$::bbox (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_abd532accff62300ee9bc402bb389d08c}


Give the bounding box domain. 



Definition at line 411 of file image1d.hh.

\hypertarget{a00247_afc085adbb613ec72b4d080e1a5950f2c}{
\index{mln::image1d@{mln::image1d}!border@{border}}
\index{border@{border}!mln::image1d@{mln::image1d}}
\subsubsection[{border}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ unsigned {\bf mln::image1d}$<$ T $>$::border (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_afc085adbb613ec72b4d080e1a5950f2c}


Give the border thickness. 



Definition at line 429 of file image1d.hh.

\hypertarget{a00247_af380bf95036c7b5bd79b1fe3db21390e}{
\index{mln::image1d@{mln::image1d}!buffer@{buffer}}
\index{buffer@{buffer}!mln::image1d@{mln::image1d}}
\subsubsection[{buffer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T $\ast$ {\bf mln::image1d}$<$ T $>$::buffer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_af380bf95036c7b5bd79b1fe3db21390e}


Give a hook to the value buffer. 



Definition at line 520 of file image1d.hh.

\hypertarget{a00247_aa0808255fdea783082b58b20fdfc6517}{
\index{mln::image1d@{mln::image1d}!buffer@{buffer}}
\index{buffer@{buffer}!mln::image1d@{mln::image1d}}
\subsubsection[{buffer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ T $\ast$ {\bf mln::image1d}$<$ T $>$::buffer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_aa0808255fdea783082b58b20fdfc6517}


Give a hook to the value buffer. 



Definition at line 529 of file image1d.hh.

\hypertarget{a00247_a655cbd2fc2120cee31af0a72419ee814}{
\index{mln::image1d@{mln::image1d}!delta\_\-index@{delta\_\-index}}
\index{delta\_\-index@{delta\_\-index}!mln::image1d@{mln::image1d}}
\subsubsection[{delta\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ int {\bf mln::image1d}$<$ T $>$::delta\_\-index (
\begin{DoxyParamCaption}
\item[{const {\bf dpoint1d} \&}]{ dp}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a655cbd2fc2120cee31af0a72419ee814}


Give the offset corresponding to the delta-\/point {\ttfamily dp}. 



Definition at line 538 of file image1d.hh.

\hypertarget{a00247_af8e1f8d32c4052255f997b660bfc975d}{
\index{mln::image1d@{mln::image1d}!domain@{domain}}
\index{domain@{domain}!mln::image1d@{mln::image1d}}
\subsubsection[{domain}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const {\bf box1d} \& {\bf mln::image1d}$<$ T $>$::domain (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_af8e1f8d32c4052255f997b660bfc975d}


Give the definition domain. 



Definition at line 402 of file image1d.hh.

\hypertarget{a00247_a92a464cabf2ae69089da84a22503e51f}{
\index{mln::image1d@{mln::image1d}!element@{element}}
\index{element@{element}!mln::image1d@{mln::image1d}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T \& {\bf mln::image1d}$<$ T $>$::element (
\begin{DoxyParamCaption}
\item[{unsigned}]{ i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a92a464cabf2ae69089da84a22503e51f}


Read-\/only access to the {\ttfamily i-\/th} image value (including the border). 



Definition at line 502 of file image1d.hh.



References mln::image1d$<$ T $>$::nelements().

\hypertarget{a00247_ad444f4926ea0f737ee1facdba398f15e}{
\index{mln::image1d@{mln::image1d}!element@{element}}
\index{element@{element}!mln::image1d@{mln::image1d}}
\subsubsection[{element}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ T \& {\bf mln::image1d}$<$ T $>$::element (
\begin{DoxyParamCaption}
\item[{unsigned}]{ i}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_ad444f4926ea0f737ee1facdba398f15e}


Read-\/write access to the {\ttfamily i-\/th} image value (including the border). 



Definition at line 511 of file image1d.hh.



References mln::image1d$<$ T $>$::nelements().

\hypertarget{a00247_ac02bc55835df4a09984f8736bb7844b8}{
\index{mln::image1d@{mln::image1d}!has@{has}}
\index{has@{has}!mln::image1d@{mln::image1d}}
\subsubsection[{has}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ bool {\bf mln::image1d}$<$ T $>$::has (
\begin{DoxyParamCaption}
\item[{const {\bf point1d} \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_ac02bc55835df4a09984f8736bb7844b8}


Test if {\ttfamily p} is valid. 



Definition at line 447 of file image1d.hh.



Referenced by mln::image1d$<$ T $>$::operator()().

\hypertarget{a00247_a86a6acca33da00e22ce77e05e6a962cc}{
\index{mln::image1d@{mln::image1d}!nelements@{nelements}}
\index{nelements@{nelements}!mln::image1d@{mln::image1d}}
\subsubsection[{nelements}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ unsigned {\bf mln::image1d}$<$ T $>$::nelements (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a86a6acca33da00e22ce77e05e6a962cc}


Give the number of cells (points including border ones). 



Definition at line 438 of file image1d.hh.



Referenced by mln::image1d$<$ T $>$::element(), and mln::image1d$<$ T $>$::point\_\-at\_\-index().

\hypertarget{a00247_ac98d67898ec5ee828f6c53baac6d2f2d}{
\index{mln::image1d@{mln::image1d}!ninds@{ninds}}
\index{ninds@{ninds}!mln::image1d@{mln::image1d}}
\subsubsection[{ninds}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ unsigned {\bf mln::image1d}$<$ T $>$::ninds (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_ac98d67898ec5ee828f6c53baac6d2f2d}


Give the number of indexes. 



Definition at line 483 of file image1d.hh.

\hypertarget{a00247_af25bd4afa4b71cb6a1050015c31f1c88}{
\index{mln::image1d@{mln::image1d}!operator()@{operator()}}
\index{operator()@{operator()}!mln::image1d@{mln::image1d}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const T \& {\bf mln::image1d}$<$ T $>$::operator() (
\begin{DoxyParamCaption}
\item[{const {\bf point1d} \&}]{ p}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_af25bd4afa4b71cb6a1050015c31f1c88}


Read-\/only access to the image value located at point {\ttfamily p}. 



Definition at line 456 of file image1d.hh.



References mln::image1d$<$ T $>$::has().

\hypertarget{a00247_a6777cedc7737c422cad213afe3a98213}{
\index{mln::image1d@{mln::image1d}!operator()@{operator()}}
\index{operator()@{operator()}!mln::image1d@{mln::image1d}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ T \& {\bf mln::image1d}$<$ T $>$::operator() (
\begin{DoxyParamCaption}
\item[{const {\bf point1d} \&}]{ p}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a6777cedc7737c422cad213afe3a98213}


Read-\/write access to the image value located at point {\ttfamily p}. 



Definition at line 465 of file image1d.hh.



References mln::image1d$<$ T $>$::has().

\hypertarget{a00247_a73b180151b67978d0d0ae4062ce92862}{
\index{mln::image1d@{mln::image1d}!point\_\-at\_\-index@{point\_\-at\_\-index}}
\index{point\_\-at\_\-index@{point\_\-at\_\-index}!mln::image1d@{mln::image1d}}
\subsubsection[{point\_\-at\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf point1d} {\bf mln::image1d}$<$ T $>$::point\_\-at\_\-index (
\begin{DoxyParamCaption}
\item[{unsigned}]{ i}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a73b180151b67978d0d0ae4062ce92862}


Give the point corresponding to the offset {\ttfamily o}. 



Definition at line 548 of file image1d.hh.



References mln::image1d$<$ T $>$::nelements().

\hypertarget{a00247_a7c4f57fa12dc9979d3e4c951e4abbe88}{
\index{mln::image1d@{mln::image1d}!vbbox@{vbbox}}
\index{vbbox@{vbbox}!mln::image1d@{mln::image1d}}
\subsubsection[{vbbox}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ const {\bf box1d} \& {\bf mln::image1d}$<$ T $>$::vbbox (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d0/d1f/a00247_a7c4f57fa12dc9979d3e4c951e4abbe88}


virtual box, i.e., box including the virtual border 



Definition at line 420 of file image1d.hh.

