\hypertarget{a02761}{
\section{mln::win Namespace Reference}
\label{dd/d4a/a02761}\index{mln::win@{mln::win}}
}


Namespace of image processing routines related to win.  


\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00444}{backdiag2d}
\begin{DoxyCompactList}\small\item\em Diagonal line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00445}{ball}
\begin{DoxyCompactList}\small\item\em Generic ball window defined on a given grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00446}{cube3d}
\begin{DoxyCompactList}\small\item\em Cube window defined on the 3D grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00447}{cuboid3d}
\begin{DoxyCompactList}\small\item\em Cuboid defined on the 3-\/D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00448}{diag2d}
\begin{DoxyCompactList}\small\item\em Diagonal line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00449}{line}
\begin{DoxyCompactList}\small\item\em Generic line window defined on a given grid in the given dimension. \item\end{DoxyCompactList}\item 
class \hyperlink{a00450}{multiple}
\begin{DoxyCompactList}\small\item\em Multiple window. \item\end{DoxyCompactList}\item 
class \hyperlink{a00451}{multiple\_\-size}
\begin{DoxyCompactList}\small\item\em Definition of a multiple-\/size window. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00452}{octagon2d}
\begin{DoxyCompactList}\small\item\em Octagon window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
struct \hyperlink{a00453}{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 \hyperlink{a00445}{ball}$<$ grid::square, \hyperlink{a02538_acc37e9568f79048ce08f859b409755f9}{def::coord} $>$ \hyperlink{a02809_ga27f852a3df44b2c11cc3dec47f218dc9}{disk2d}
\begin{DoxyCompactList}\small\item\em 2D disk window; precisely, ball-\/shaped window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00449}{line}$<$ grid::square, 1, \hyperlink{a02538_acc37e9568f79048ce08f859b409755f9}{def::coord} $>$ \hyperlink{a02809_ga1a4c22f3ddab3f70132a83c4430e649e}{hline2d}
\begin{DoxyCompactList}\small\item\em Horizontal line window defined on the 2D square grid. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00449}{line}$<$ grid::tick, 0, \hyperlink{a02538_acc37e9568f79048ce08f859b409755f9}{def::coord} $>$ \hyperlink{a02808_gaad075e99a6af035a8caa5c4155a29756}{segment1d}
\begin{DoxyCompactList}\small\item\em Segment window defined on the 1D grid. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00449}{line}$<$ grid::cube, 0, \hyperlink{a02538_acc37e9568f79048ce08f859b409755f9}{def::coord} $>$ \hyperlink{a02810_gab77d4ce6475d4a73a3e7a800ea378194}{sline3d}
\begin{DoxyCompactList}\small\item\em Depth line window defined on the 3D cubic grid. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00445}{ball}$<$ grid::cube, \hyperlink{a02538_acc37e9568f79048ce08f859b409755f9}{def::coord} $>$ \hyperlink{a02810_ga5ea1c1ab863e1af4ae5d3b412130d691}{sphere3d}
\begin{DoxyCompactList}\small\item\em 3D sphere window; precisely, ball-\/shaped window defined on the 3D cubic grid. \item\end{DoxyCompactList}\item 
typedef \hyperlink{a00449}{line}$<$ grid::square, 0, \hyperlink{a02538_acc37e9568f79048ce08f859b409755f9}{def::coord} $>$ \hyperlink{a02809_ga185eaaeb73ef1028982b3703d168f915}{vline2d}
\begin{DoxyCompactList}\small\item\em Vertical line window defined on the 2D square grid. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename N1 , typename N2 $>$ }\\\hyperlink{a00295}{neighb}$<$ typename N1::window::regular $>$ \hyperlink{a02761_a1235ce3e7773ee2ad25935f055bd0c57}{diff} (const \hyperlink{a00296}{Neighborhood}$<$ N1 $>$ \&nbh1, const \hyperlink{a00296}{Neighborhood}$<$ N2 $>$ \&nbh2)
\begin{DoxyCompactList}\small\item\em Set difference between a couple of neighborhoods {\ttfamily nbh1} and {\ttfamily nbh2}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W1 , typename W2 $>$ }\\\hyperlink{a02761_aa7d69b42e36ce7bc33fb2c77d2c048e2}{mln\_\-regular} (W1) diff(const \hyperlink{a00454}{Window}$<$ W1 $>$ \&win1
\begin{DoxyCompactList}\small\item\em Set difference between a couple of windows {\ttfamily win1} and {\ttfamily win2}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\\hyperlink{a02761_a1fd82a1f127a85ba4b1dc8ad56aa7c4d}{mln\_\-regular} (W) shift(const \hyperlink{a00454}{Window}$<$ W $>$ \&win
\begin{DoxyCompactList}\small\item\em Shift a window {\ttfamily win} with a delta-\/point {\ttfamily dp}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\W \hyperlink{a02761_a44f3a0fb0bc0d7fff039dde92138543e}{sym} (const \hyperlink{a00454}{Window}$<$ W $>$ \&win)
\begin{DoxyCompactList}\small\item\em Give the symmetrical window of {\ttfamily win}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename W $>$ }\\W \hyperlink{a02761_a8741bcdff314705690a4593f97dd9d10}{sym} (const \hyperlink{a00443}{Weighted\_\-Window}$<$ W $>$ \&w\_\-win)
\begin{DoxyCompactList}\small\item\em Give the symmetrical weighted window of {\ttfamily w\_\-win}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of image processing routines related to win. 

\subsection{Function Documentation}
\hypertarget{a02761_a1235ce3e7773ee2ad25935f055bd0c57}{
\index{mln::win@{mln::win}!diff@{diff}}
\index{diff@{diff}!mln::win@{mln::win}}
\subsubsection[{diff}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename N1 , typename N2 $>$ N2 {\bf neighb}$<$ typename N1::window::regular $>$ mln::win::diff (
\begin{DoxyParamCaption}
\item[{const Neighborhood$<$ N1 $>$ \&}]{ nbh1, }
\item[{const Neighborhood$<$ N2 $>$ \&}]{ nbh2}
\end{DoxyParamCaption}
)}}
\label{dd/d4a/a02761_a1235ce3e7773ee2ad25935f055bd0c57}


Set difference between a couple of neighborhoods {\ttfamily nbh1} and {\ttfamily nbh2}. 



Definition at line 132 of file win/diff.hh.



Referenced by mln::operator-\/().

\hypertarget{a02761_aa7d69b42e36ce7bc33fb2c77d2c048e2}{
\index{mln::win@{mln::win}!mln\_\-regular@{mln\_\-regular}}
\index{mln\_\-regular@{mln\_\-regular}!mln::win@{mln::win}}
\subsubsection[{mln\_\-regular}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W1 , typename W2 $>$ mln::win::mln\_\-regular (
\begin{DoxyParamCaption}
\item[{W1}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d4a/a02761_aa7d69b42e36ce7bc33fb2c77d2c048e2}


Set difference between a couple of windows {\ttfamily win1} and {\ttfamily win2}. 

\hypertarget{a02761_a1fd82a1f127a85ba4b1dc8ad56aa7c4d}{
\index{mln::win@{mln::win}!mln\_\-regular@{mln\_\-regular}}
\index{mln\_\-regular@{mln\_\-regular}!mln::win@{mln::win}}
\subsubsection[{mln\_\-regular}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ mln::win::mln\_\-regular (
\begin{DoxyParamCaption}
\item[{W}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d4a/a02761_a1fd82a1f127a85ba4b1dc8ad56aa7c4d}


Shift a window {\ttfamily win} with a delta-\/point {\ttfamily dp}. 

\hypertarget{a02761_a44f3a0fb0bc0d7fff039dde92138543e}{
\index{mln::win@{mln::win}!sym@{sym}}
\index{sym@{sym}!mln::win@{mln::win}}
\subsubsection[{sym}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ W mln::win::sym (
\begin{DoxyParamCaption}
\item[{const Window$<$ W $>$ \&}]{ win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d4a/a02761_a44f3a0fb0bc0d7fff039dde92138543e}


Give the symmetrical window of {\ttfamily win}. 



Definition at line 59 of file sym.hh.



Referenced by mln::c18(), mln::c26(), mln::c4\_\-3d(), mln::c6(), mln::morpho::hit\_\-or\_\-miss\_\-background\_\-opening(), mln::morpho::hit\_\-or\_\-miss\_\-opening(), mln::morpho::opening::approx::structural(), and mln::morpho::closing::approx::structural().

\hypertarget{a02761_a8741bcdff314705690a4593f97dd9d10}{
\index{mln::win@{mln::win}!sym@{sym}}
\index{sym@{sym}!mln::win@{mln::win}}
\subsubsection[{sym}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename W $>$ W mln::win::sym (
\begin{DoxyParamCaption}
\item[{const Weighted\_\-Window$<$ W $>$ \&}]{ w\_\-win}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d4a/a02761_a8741bcdff314705690a4593f97dd9d10}


Give the symmetrical weighted window of {\ttfamily w\_\-win}. 



Definition at line 71 of file sym.hh.

