\hypertarget{a02668}{
\section{mln::morpho::elementary Namespace Reference}
\label{d9/d5b/a02668}\index{mln::morpho::elementary@{mln::morpho::elementary}}
}


Namespace of image processing routines of elementary mathematical morphology.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I , typename N $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02668_a9506a16c47c1d6da27eefd49ac502e61}{closing} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Morphological elementary closing. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename N $>$ }\\\hyperlink{a02668_af6d5d355970c107a4903b79c6a5f8515}{mln\_\-trait\_\-op\_\-minus\_\-twice} (typename mln::trait::concrete$<$ I $>$::ret) laplacian(const \hyperlink{a00044}{Image}$<$ I $>$ \&input
\begin{DoxyCompactList}\small\item\em Morphological elementary laplacian. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename N $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02668_adc3c43887c721be492159753f9d63f4c}{opening} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Morphological elementary opening. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename N $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02668_a4e8d21b2e48201dc7626450129f28803}{top\_\-hat\_\-black} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Morphological elementary black top-\/hat (for background / dark objects). \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename N $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02668_a95555f9d6736e24863cf493538c7a2fc}{top\_\-hat\_\-self\_\-complementary} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Morphological elementary self-\/complementary top-\/hat. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename N $>$ }\\mln::trait::concrete$<$ I $>$::ret \hyperlink{a02668_ae5b79a9f392c335ccee77cb976403831}{top\_\-hat\_\-white} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Morphological elementary white top-\/hat (for object / light objects). \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of image processing routines of elementary mathematical morphology. 

\subsection{Function Documentation}
\hypertarget{a02668_a9506a16c47c1d6da27eefd49ac502e61}{
\index{mln::morpho::elementary@{mln::morpho::elementary}!closing@{closing}}
\index{closing@{closing}!mln::morpho::elementary@{mln::morpho::elementary}}
\subsubsection[{closing}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename N $>$ mln::trait::concrete$<$ I $>$::ret mln::morpho::elementary::closing (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d5b/a02668_a9506a16c47c1d6da27eefd49ac502e61}


Morphological elementary closing. 

This operator is e o d. 

Definition at line 58 of file closing.hh.



Referenced by top\_\-hat\_\-black(), and top\_\-hat\_\-self\_\-complementary().

\hypertarget{a02668_af6d5d355970c107a4903b79c6a5f8515}{
\index{mln::morpho::elementary@{mln::morpho::elementary}!mln\_\-trait\_\-op\_\-minus\_\-twice@{mln\_\-trait\_\-op\_\-minus\_\-twice}}
\index{mln\_\-trait\_\-op\_\-minus\_\-twice@{mln\_\-trait\_\-op\_\-minus\_\-twice}!mln::morpho::elementary@{mln::morpho::elementary}}
\subsubsection[{mln\_\-trait\_\-op\_\-minus\_\-twice}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename N $>$ mln::morpho::elementary::mln\_\-trait\_\-op\_\-minus\_\-twice (
\begin{DoxyParamCaption}
\item[{typename mln::trait::concrete$<$ I $>$::ret}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d5b/a02668_af6d5d355970c107a4903b79c6a5f8515}


Morphological elementary laplacian. 

This operator is (d -\/ id) -\/ (id -\/ e). \hypertarget{a02668_adc3c43887c721be492159753f9d63f4c}{
\index{mln::morpho::elementary@{mln::morpho::elementary}!opening@{opening}}
\index{opening@{opening}!mln::morpho::elementary@{mln::morpho::elementary}}
\subsubsection[{opening}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename N $>$ mln::trait::concrete$<$ I $>$::ret mln::morpho::elementary::opening (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d5b/a02668_adc3c43887c721be492159753f9d63f4c}


Morphological elementary opening. 

This operator is d o e. 

Definition at line 58 of file opening.hh.



Referenced by top\_\-hat\_\-self\_\-complementary(), and top\_\-hat\_\-white().

\hypertarget{a02668_a4e8d21b2e48201dc7626450129f28803}{
\index{mln::morpho::elementary@{mln::morpho::elementary}!top\_\-hat\_\-black@{top\_\-hat\_\-black}}
\index{top\_\-hat\_\-black@{top\_\-hat\_\-black}!mln::morpho::elementary@{mln::morpho::elementary}}
\subsubsection[{top\_\-hat\_\-black}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename N $>$ mln::trait::concrete$<$ I $>$::ret mln::morpho::elementary::top\_\-hat\_\-black (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d5b/a02668_a4e8d21b2e48201dc7626450129f28803}


Morphological elementary black top-\/hat (for background / dark objects). 

This operator is clo -\/ Id. 

Definition at line 105 of file elementary/top\_\-hat.hh.



References closing(), mln::morpho::minus(), and mln::test::positive().

\hypertarget{a02668_a95555f9d6736e24863cf493538c7a2fc}{
\index{mln::morpho::elementary@{mln::morpho::elementary}!top\_\-hat\_\-self\_\-complementary@{top\_\-hat\_\-self\_\-complementary}}
\index{top\_\-hat\_\-self\_\-complementary@{top\_\-hat\_\-self\_\-complementary}!mln::morpho::elementary@{mln::morpho::elementary}}
\subsubsection[{top\_\-hat\_\-self\_\-complementary}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename N $>$ mln::trait::concrete$<$ I $>$::ret mln::morpho::elementary::top\_\-hat\_\-self\_\-complementary (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d5b/a02668_a95555f9d6736e24863cf493538c7a2fc}


Morphological elementary self-\/complementary top-\/hat. 

This operator is \par
 = top\_\-hat\_\-white + top\_\-hat\_\-black \par
 = (Id -\/ opening) + (closing -\/ Id) \par
 = closing -\/ opening. \par
 

Definition at line 125 of file elementary/top\_\-hat.hh.



References closing(), mln::morpho::minus(), opening(), and mln::test::positive().

\hypertarget{a02668_ae5b79a9f392c335ccee77cb976403831}{
\index{mln::morpho::elementary@{mln::morpho::elementary}!top\_\-hat\_\-white@{top\_\-hat\_\-white}}
\index{top\_\-hat\_\-white@{top\_\-hat\_\-white}!mln::morpho::elementary@{mln::morpho::elementary}}
\subsubsection[{top\_\-hat\_\-white}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename N $>$ mln::trait::concrete$<$ I $>$::ret mln::morpho::elementary::top\_\-hat\_\-white (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d5b/a02668_ae5b79a9f392c335ccee77cb976403831}


Morphological elementary white top-\/hat (for object / light objects). 

This operator is Id -\/ ope. 

Definition at line 85 of file elementary/top\_\-hat.hh.



References mln::morpho::minus(), opening(), and mln::test::positive().

