\hypertarget{a02719}{
\section{mln::test Namespace Reference}
\label{d5/d55/a02719}\index{mln::test@{mln::test}}
}


Namespace of image processing routines related to pixel tests.  


\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
namespace \hyperlink{a02720}{impl}


\begin{DoxyCompactList}\small\item\em Implementation namespace of test namespace. \item\end{DoxyCompactList}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename I $>$ }\\bool \hyperlink{a02719_af5280cb401456a99ac6f79bedd055293}{positive} (const \hyperlink{a00044}{Image}$<$ I $>$ \&input)
\begin{DoxyCompactList}\small\item\em Test if an image only contains positive values. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename S , typename F $>$ }\\bool \hyperlink{a02719_aef769708240068242047e25c90018c19}{predicate} (const \hyperlink{a00348}{Site\_\-Set}$<$ S $>$ \&pset, const \hyperlink{a00033}{Function\_\-v2b}$<$ F $>$ \&f)
\begin{DoxyCompactList}\small\item\em Test if all points of {\ttfamily pset} verify the predicate {\ttfamily f}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename J , typename F $>$ }\\bool \hyperlink{a02719_a6ae151c4b7bf316bdf836d84ff1de757}{predicate} (const \hyperlink{a00044}{Image}$<$ I $>$ \&lhs, const \hyperlink{a00044}{Image}$<$ J $>$ \&rhs, const \hyperlink{a00035}{Function\_\-vv2b}$<$ F $>$ \&f)
\begin{DoxyCompactList}\small\item\em Test if all pixel values of {\ttfamily lhs} and {\ttfamily rhs} verify the predicate {\ttfamily f}. \item\end{DoxyCompactList}\item 
{\footnotesize template$<$typename I , typename F $>$ }\\bool \hyperlink{a02719_a48eea53acea565ea4686f32d32648b80}{predicate} (const \hyperlink{a00044}{Image}$<$ I $>$ \&ima, const \hyperlink{a00033}{Function\_\-v2b}$<$ F $>$ \&f)
\begin{DoxyCompactList}\small\item\em Test if all pixel values of {\ttfamily ima} verify the predicate {\ttfamily f}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


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

\subsection{Function Documentation}
\hypertarget{a02719_af5280cb401456a99ac6f79bedd055293}{
\index{mln::test@{mln::test}!positive@{positive}}
\index{positive@{positive}!mln::test@{mln::test}}
\subsubsection[{positive}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I $>$ bool mln::test::positive (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ input}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d5/d55/a02719_af5280cb401456a99ac6f79bedd055293}


Test if an image only contains positive values. 



Definition at line 54 of file positive.hh.



References predicate(), and mln::literal::zero.



Referenced by mln::morpho::gradient(), mln::morpho::gradient\_\-external(), mln::morpho::gradient\_\-internal(), mln::morpho::top\_\-hat\_\-black(), mln::morpho::elementary::top\_\-hat\_\-black(), mln::morpho::top\_\-hat\_\-self\_\-complementary(), mln::morpho::elementary::top\_\-hat\_\-self\_\-complementary(), mln::morpho::top\_\-hat\_\-white(), and mln::morpho::elementary::top\_\-hat\_\-white().

\hypertarget{a02719_aef769708240068242047e25c90018c19}{
\index{mln::test@{mln::test}!predicate@{predicate}}
\index{predicate@{predicate}!mln::test@{mln::test}}
\subsubsection[{predicate}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S , typename F $>$ bool mln::test::predicate (
\begin{DoxyParamCaption}
\item[{const Site\_\-Set$<$ S $>$ \&}]{ pset, }
\item[{const Function\_\-v2b$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d5/d55/a02719_aef769708240068242047e25c90018c19}


Test if all points of {\ttfamily pset} verify the predicate {\ttfamily f}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em pset}]The point set. \item[\mbox{\tt[in]} {\em f}]The predicate. \end{DoxyParams}


Definition at line 242 of file predicate.hh.

\hypertarget{a02719_a6ae151c4b7bf316bdf836d84ff1de757}{
\index{mln::test@{mln::test}!predicate@{predicate}}
\index{predicate@{predicate}!mln::test@{mln::test}}
\subsubsection[{predicate}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename J , typename F $>$ bool mln::test::predicate (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ lhs, }
\item[{const Image$<$ J $>$ \&}]{ rhs, }
\item[{const Function\_\-vv2b$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d5/d55/a02719_a6ae151c4b7bf316bdf836d84ff1de757}


Test if all pixel values of {\ttfamily lhs} and {\ttfamily rhs} verify the predicate {\ttfamily f}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em lhs}]The image. \item[\mbox{\tt[in]} {\em rhs}]The image. \item[\mbox{\tt[in]} {\em f}]The predicate. \end{DoxyParams}


Definition at line 222 of file predicate.hh.

\hypertarget{a02719_a48eea53acea565ea4686f32d32648b80}{
\index{mln::test@{mln::test}!predicate@{predicate}}
\index{predicate@{predicate}!mln::test@{mln::test}}
\subsubsection[{predicate}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename I , typename F $>$ bool mln::test::predicate (
\begin{DoxyParamCaption}
\item[{const Image$<$ I $>$ \&}]{ ima, }
\item[{const Function\_\-v2b$<$ F $>$ \&}]{ f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d5/d55/a02719_a48eea53acea565ea4686f32d32648b80}


Test if all pixel values of {\ttfamily ima} verify the predicate {\ttfamily f}. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em ima}]The image. \item[\mbox{\tt[in]} {\em f}]The predicate. \end{DoxyParams}


Definition at line 207 of file predicate.hh.



Referenced by mln::operator$<$(), mln::operator$<$=(), mln::operator==(), and positive().

