\hypertarget{a02692}{
\section{mln::morpho::watershed Namespace Reference}
\label{d2/dba/a02692}\index{mln::morpho::watershed@{mln::morpho::watershed}}
}


Namespace of morphological watershed routines.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02696}{watershed}


\begin{DoxyCompactList}\small\item\em Namespace of morphological watershed routines implementations. \item\end{DoxyCompactList}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename L , typename I , typename N $>$ }\\mln::trait::ch\_\-value$<$ I, L $>$::ret \hyperlink{a02692_a00e95da3b89a4b2ec9f14576a0a30813}{flooding} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh, L \&n\_\-basins)
\begin{DoxyCompactList}\small\item\em Meyer's Watershed Transform (WST) algorithm. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename L , typename I , typename N $>$ }\\mln::trait::ch\_\-value$<$ I, L $>$::ret \hyperlink{a02692_aa51676e1fabb7a8419cf38af9be9a257}{flooding} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00296}{Neighborhood}$<$ N $>$ \&nbh)
\begin{DoxyCompactList}\small\item\em Meyer's Watershed Transform (WST) algorithm, with no count of basins. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J $>$ }\\mln::trait::ch\_\-value$<$ I, \hyperlink{a00431}{value::rgb8} $>$::ret \hyperlink{a02692_a1de19bc2efbf6b4dec4cf0226b103d8b}{superpose} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input, const \hyperlink{a00044}{Image}$<$ J $>$ \&ws\_\-ima)
\begin{DoxyCompactList}\small\item\em Convert an image to a rgb8 image and draw the watershed lines. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J $>$ }\\mln::trait::ch\_\-value$<$ I, \hyperlink{a00431}{value::rgb8} $>$::ret \hyperlink{a02692_a8caac5a958cdbd539bf40b9e22c646df}{superpose} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input\_\-, const \hyperlink{a00044}{Image}$<$ J $>$ \&ws\_\-ima\_\-, const \hyperlink{a00431}{value::rgb8} \&wsl\_\-color)
\begin{DoxyCompactList}\small\item\em Convert an image to a rgb8 image and draw the watershed lines. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$class T $>$ }\\T::image\_\-t \hyperlink{a02692_ae48995f00a7415118c431a7b4b5dd0fb}{topological} (T \&tree)
\begin{DoxyCompactList}\small\item\em Compute a toological watershed transform from {\itshape tree\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Namespace of morphological watershed routines. 

\subsection{Function Documentation}
\hypertarget{a02692_a00e95da3b89a4b2ec9f14576a0a30813}{
\index{mln::morpho::watershed@{mln::morpho::watershed}!flooding@{flooding}}
\index{flooding@{flooding}!mln::morpho::watershed@{mln::morpho::watershed}}
\subsubsection[{flooding}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename L , typename I , typename N $>$ mln::trait::ch\_\-value$<$ I, L $>$::ret mln::morpho::watershed::flooding (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh, }
\item[{L \&}]{ n\_\-basins}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/dba/a02692_a00e95da3b89a4b2ec9f14576a0a30813}


Meyer's Watershed Transform (WST) algorithm. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em nbh}]The connexity of markers. \item[\mbox{\tt[out]} {\em n\_\-basins}]The number of basins.\end{DoxyParams}
\begin{DoxyItemize}
\item {\ttfamily L} is the type of labels, used to number the watershed itself (with the minimal value), and the basins. \item {\ttfamily I} is the exact type of the input image. \item {\ttfamily N} is the exact type of the neighborhood used to express {\itshape input's\/} connexity. \end{DoxyItemize}


Definition at line 381 of file flooding.hh.

\hypertarget{a02692_aa51676e1fabb7a8419cf38af9be9a257}{
\index{mln::morpho::watershed@{mln::morpho::watershed}!flooding@{flooding}}
\index{flooding@{flooding}!mln::morpho::watershed@{mln::morpho::watershed}}
\subsubsection[{flooding}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename L , typename I , typename N $>$ mln::trait::ch\_\-value$<$ I, L $>$::ret mln::morpho::watershed::flooding (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Neighborhood$<$ N $>$ \&}]{ nbh}
\end{DoxyParamCaption}
)}}
\label{d2/dba/a02692_aa51676e1fabb7a8419cf38af9be9a257}


Meyer's Watershed Transform (WST) algorithm, with no count of basins. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em input}]The input image. \item[\mbox{\tt[in]} {\em nbh}]The connexity of markers.\end{DoxyParams}
\begin{DoxyItemize}
\item {\ttfamily L} is the type of labels, used to number the watershed itself (with the minimal value), and the basins. \item {\ttfamily I} is the exact type of the input image. \item {\ttfamily N} is the exact type of the neighborhood used to express {\itshape input's\/} connexity.\end{DoxyItemize}
Note that the first parameter, {\ttfamily L}, is not automatically valued from the type of the actual argument during implicit instantiation: you have to explicitly pass this parameter at call sites. 

Definition at line 396 of file flooding.hh.

\hypertarget{a02692_a1de19bc2efbf6b4dec4cf0226b103d8b}{
\index{mln::morpho::watershed@{mln::morpho::watershed}!superpose@{superpose}}
\index{superpose@{superpose}!mln::morpho::watershed@{mln::morpho::watershed}}
\subsubsection[{superpose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ mln::trait::ch\_\-value$<$ I, {\bf value::rgb8} $>$::ret mln::morpho::watershed::superpose (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input, }
\item[{const Image$<$ J $>$ \&}]{ ws\_\-ima}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/dba/a02692_a1de19bc2efbf6b4dec4cf0226b103d8b}


Convert an image to a rgb8 image and draw the watershed lines. 



Definition at line 109 of file morpho/watershed/superpose.hh.



References mln::literal::red, and superpose().

\hypertarget{a02692_a8caac5a958cdbd539bf40b9e22c646df}{
\index{mln::morpho::watershed@{mln::morpho::watershed}!superpose@{superpose}}
\index{superpose@{superpose}!mln::morpho::watershed@{mln::morpho::watershed}}
\subsubsection[{superpose}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J $>$ mln::trait::ch\_\-value$<$ I, {\bf value::rgb8} $>$::ret mln::morpho::watershed::superpose (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input\_\-, }
\item[{const Image$<$ J $>$ \&}]{ ws\_\-ima\_\-, }
\item[{const value::rgb8 \&}]{ wsl\_\-color}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/dba/a02692_a8caac5a958cdbd539bf40b9e22c646df}


Convert an image to a rgb8 image and draw the watershed lines. 



Definition at line 85 of file morpho/watershed/superpose.hh.



References mln::data::convert(), mln::data::fill(), and mln::literal::zero.



Referenced by superpose().

\hypertarget{a02692_ae48995f00a7415118c431a7b4b5dd0fb}{
\index{mln::morpho::watershed@{mln::morpho::watershed}!topological@{topological}}
\index{topological@{topological}!mln::morpho::watershed@{mln::morpho::watershed}}
\subsubsection[{topological}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class T $>$ T::image\_\-t mln::morpho::watershed::topological (
\begin{DoxyParamCaption}
\item[{T \&}]{ tree}
\end{DoxyParamCaption}
)}}
\label{d2/dba/a02692_ae48995f00a7415118c431a7b4b5dd0fb}


Compute a toological watershed transform from {\itshape tree\/}. 



Definition at line 675 of file topological.hh.



References mln::data::fill(), mln::p\_\-priority$<$ P, Q $>$::front(), mln::initialize(), mln::p\_\-priority$<$ P, Q $>$::pop(), mln::p\_\-priority$<$ P, Q $>$::push(), and topological().



Referenced by topological().

