\hypertarget{a02809}{
\section{2D windows}
\label{d5/d34/a02809}\index{2D windows@{2D windows}}
}


Predefined 2D windows.  


\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00444}{mln::win::backdiag2d}
\begin{DoxyCompactList}\small\item\em Diagonal line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00448}{mln::win::diag2d}
\begin{DoxyCompactList}\small\item\em Diagonal line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00452}{mln::win::octagon2d}
\begin{DoxyCompactList}\small\item\em Octagon window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00453}{mln::win::rectangle2d}
\begin{DoxyCompactList}\small\item\em Rectangular window defined on the 2D square grid. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef ball$<$ grid::square, def::coord $>$ \hyperlink{a02809_ga27f852a3df44b2c11cc3dec47f218dc9}{mln::win::disk2d}
\begin{DoxyCompactList}\small\item\em 2D disk window; precisely, ball-\/shaped window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
typedef line$<$ grid::square, 1, def::coord $>$ \hyperlink{a02809_ga1a4c22f3ddab3f70132a83c4430e649e}{mln::win::hline2d}
\begin{DoxyCompactList}\small\item\em Horizontal line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
typedef line$<$ grid::square, 0, def::coord $>$ \hyperlink{a02809_ga185eaaeb73ef1028982b3703d168f915}{mln::win::vline2d}
\begin{DoxyCompactList}\small\item\em Vertical line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
typedef window$<$ \hyperlink{a00178}{mln::dpoint2d} $>$ \hyperlink{a02809_ga2dc1ea4d7bc4fb69acc0859f872c04af}{mln::window2d}
\begin{DoxyCompactList}\small\item\em Type alias for a window with arbitrary shape, defined on the 2D square grid with integer coordinates. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
const window2d \& \hyperlink{a02809_ga35008f82ac09a39162859666ee613638}{mln::win\_\-c4p} ()
\begin{DoxyCompactList}\small\item\em 4-\/connectivity window on the 2D grid, including the center. \item\end{DoxyCompactList}\item 
const window2d \& \hyperlink{a02809_ga4adbf4e7eeaac4dfe0990523e22ff97d}{mln::win\_\-c8p} ()
\begin{DoxyCompactList}\small\item\em 8-\/connectivity window on the 2D grid, including the center. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Predefined 2D windows. 

\subsection{Typedef Documentation}
\hypertarget{a02809_ga27f852a3df44b2c11cc3dec47f218dc9}{
\index{modwin2d@{modwin2d}!disk2d@{disk2d}}
\index{disk2d@{disk2d}!modwin2d@{modwin2d}}
\subsubsection[{disk2d}]{\setlength{\rightskip}{0pt plus 5cm}typedef ball$<$grid::square, def::coord$>$ {\bf mln::win::disk2d}}}
\label{d5/d34/a02809_ga27f852a3df44b2c11cc3dec47f218dc9}


2D disk window; precisely, ball-\/shaped window defined on the 2D square grid. 



Definition at line 49 of file disk2d.hh.

\hypertarget{a02809_ga1a4c22f3ddab3f70132a83c4430e649e}{
\index{modwin2d@{modwin2d}!hline2d@{hline2d}}
\index{hline2d@{hline2d}!modwin2d@{modwin2d}}
\subsubsection[{hline2d}]{\setlength{\rightskip}{0pt plus 5cm}typedef line$<$grid::square, 1, def::coord$>$ {\bf mln::win::hline2d}}}
\label{d5/d34/a02809_ga1a4c22f3ddab3f70132a83c4430e649e}


Horizontal line window defined on the 2D square grid. 

An hline2d is centered and symmetric; so its height is 1 and its width (length) is odd.

For instance: \begin{DoxyVerb}
        o o x o o
       \end{DoxyVerb}
 is defined with length = 5. 

Definition at line 57 of file hline2d.hh.

\hypertarget{a02809_ga185eaaeb73ef1028982b3703d168f915}{
\index{modwin2d@{modwin2d}!vline2d@{vline2d}}
\index{vline2d@{vline2d}!modwin2d@{modwin2d}}
\subsubsection[{vline2d}]{\setlength{\rightskip}{0pt plus 5cm}typedef line$<$grid::square, 0, def::coord$>$ {\bf mln::win::vline2d}}}
\label{d5/d34/a02809_ga185eaaeb73ef1028982b3703d168f915}


Vertical line window defined on the 2D square grid. 

An vline2d is centered and symmetric; so its width is 1 and its height (length) is odd.

For instance: \begin{DoxyVerb}
        o
        x
        o
       \end{DoxyVerb}
 is defined with length = 3. 

Definition at line 58 of file vline2d.hh.

\hypertarget{a02809_ga2dc1ea4d7bc4fb69acc0859f872c04af}{
\index{modwin2d@{modwin2d}!window2d@{window2d}}
\index{window2d@{window2d}!modwin2d@{modwin2d}}
\subsubsection[{window2d}]{\setlength{\rightskip}{0pt plus 5cm}typedef window$<${\bf mln::dpoint2d}$>$ {\bf mln::window2d}}}
\label{d5/d34/a02809_ga2dc1ea4d7bc4fb69acc0859f872c04af}


Type alias for a window with arbitrary shape, defined on the 2D square grid with integer coordinates. 



Definition at line 49 of file window2d.hh.



\subsection{Function Documentation}
\hypertarget{a02809_ga35008f82ac09a39162859666ee613638}{
\index{modwin2d@{modwin2d}!win\_\-c4p@{win\_\-c4p}}
\index{win\_\-c4p@{win\_\-c4p}!modwin2d@{modwin2d}}
\subsubsection[{win\_\-c4p}]{\setlength{\rightskip}{0pt plus 5cm}const window2d \& mln::win\_\-c4p (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d5/d34/a02809_ga35008f82ac09a39162859666ee613638}


4-\/connectivity window on the 2D grid, including the center. 

\begin{DoxyVerb}
       - o -
       o x o
       - o -
    \end{DoxyVerb}


\begin{DoxyReturn}{Returns}
A window2d. 
\end{DoxyReturn}


Definition at line 105 of file window2d.hh.



References mln::window$<$ D $>$::insert(), and mln::window$<$ D $>$::size().

\hypertarget{a02809_ga4adbf4e7eeaac4dfe0990523e22ff97d}{
\index{modwin2d@{modwin2d}!win\_\-c8p@{win\_\-c8p}}
\index{win\_\-c8p@{win\_\-c8p}!modwin2d@{modwin2d}}
\subsubsection[{win\_\-c8p}]{\setlength{\rightskip}{0pt plus 5cm}const window2d \& mln::win\_\-c8p (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d5/d34/a02809_ga4adbf4e7eeaac4dfe0990523e22ff97d}


8-\/connectivity window on the 2D grid, including the center. 

\begin{DoxyVerb}
       o o o
       o x o
       o o o
    \end{DoxyVerb}


\begin{DoxyReturn}{Returns}
A window2d. 
\end{DoxyReturn}


Definition at line 121 of file window2d.hh.



References mln::window$<$ D $>$::insert(), and mln::window$<$ D $>$::size().

