\hypertarget{storm_8h}{
\subsection{storm.h File Reference}
\label{storm_8h}\index{storm.h@{storm.h}}
}


Code dealing with storm imagery (high level).  


{\ttfamily \#include $<$TooN/TooN.h$>$}\par
{\ttfamily \#include $<$cvd/image.h$>$}\par
{\ttfamily \#include $<$utility$>$}\par
{\ttfamily \#include $<$tr1/tuple$>$}\par
{\ttfamily \#include \char`\"{}utility.h\char`\"{}}\par
\subsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class B $>$ }\\double \hyperlink{group__gStorm_ga0b300e882aad6e3c180df8f58bd5bf63}{spot\_\-shape\_\-s} (const TooN::Vector$<$ 2 $>$ \&x, const TooN::Vector$<$ 4, double, B $>$ \&phi)
\item 
{\footnotesize template$<$class B $>$ }\\std::pair$<$ double, TooN::Vector$<$ 4 $>$ $>$ \hyperlink{group__gStorm_ga6b2081a450ccc5950ae17115bf7a0c56}{spot\_\-shape\_\-diff\_\-position} (const TooN::Vector$<$ 2 $>$ \&x, const TooN::Vector$<$ 4, double, B $>$ \&phi)
\item 
{\footnotesize template$<$class B $>$ }\\std::tr1::tuple$<$ double, TooN::Vector$<$ 4 $>$, TooN::Matrix$<$ 4 $>$ $>$ \hyperlink{group__gStorm_gaf4680f7b58ed5c458939e464c4ead582}{spot\_\-shape\_\-hess\_\-position} (const TooN::Vector$<$ 2 $>$ \&x, const TooN::Vector$<$ 4, double, B $>$ \&phi)
\item 
{\footnotesize template$<$class B $>$ }\\std::tr1::tuple$<$ double, TooN::Vector$<$ 2 $>$, TooN::Matrix$<$ 2 $>$ $>$ \hyperlink{group__gStorm_ga110d3db1cf9bdb79a56498e6506c7c19}{spot\_\-shape\_\-hess} (const TooN::Vector$<$ 2 $>$ \&x, const TooN::Vector$<$ 4, double, B $>$ \&phi)
\item 
{\footnotesize template$<$class B $>$ }\\std::pair$<$ double, TooN::Vector$<$ 2 $>$ $>$ \hyperlink{group__gStorm_gafbd0826fe088e857f2e97105efa8ef6e}{spot\_\-shape\_\-diff} (const TooN::Vector$<$ 2 $>$ \&x, const TooN::Vector$<$ 4, double, B $>$ \&phi)
\item 
{\footnotesize template$<$class B $>$ }\\double \hyperlink{group__gStorm_ga4414bdd28d7ba4d708f3b329d7a2abad}{spot\_\-shape} (const TooN::Vector$<$ 2 $>$ \&x, const TooN::Vector$<$ 4, double, B $>$ \&phi)
\item 
double \hyperlink{storm_8h_af75ebcfbdf0264151f425435ba3d26e1}{log\_\-probability\_\-no\_\-spot} (const CVD::SubImage$<$ float $>$ \&im, double variance)
\item 
{\footnotesize template$<$class Base $>$ }\\std::tr1::tuple$<$ double, TooN::Vector$<$ 2 $>$, TooN::Matrix$<$ 2 $>$ $>$ \hyperlink{group__gStorm_ga5d0cd4c20daf3c1eb6bfa65d655d0243}{log\_\-probability\_\-spot\_\-hess} (const CVD::SubImage$<$ float $>$ \&im, double variance, const TooN::Vector$<$ 4, double, Base $>$ \&spot\_\-parameters)
\item 
{\footnotesize template$<$class Base $>$ }\\std::pair$<$ double, TooN::Vector$<$ 2 $>$ $>$ \hyperlink{group__gStorm_gabab1ab1b780d7da267c5dccaef0b87c9}{log\_\-probability\_\-spot\_\-diff} (const CVD::SubImage$<$ float $>$ \&im, double variance, const TooN::Vector$<$ 4, double, Base $>$ \&spot\_\-parameters)
\item 
{\footnotesize template$<$class Base $>$ }\\double \hyperlink{group__gStorm_ga1a24bd3f98cfef3265ec27f522b790eb}{log\_\-probability\_\-spot} (const CVD::SubImage$<$ float $>$ \&im, double variance, const TooN::Vector$<$ 4, double, Base $>$ \&spot\_\-parameters)
\item 
double \hyperlink{group__gStorm_gac9fd2f658c90bcf942fde135dab63557}{log\_\-normal\_\-std} (double mu, double sigma)
\item 
double \hyperlink{group__gStorm_ga69425e80deea70f9bd15cc82b50768a3}{log\_\-normal\_\-mode} (double mu, double sigma)
\item 
double \hyperlink{group__gStorm_ga110afd744fdb0f40c6420b640f05a61c}{log\_\-log\_\-normal} (double x, double mu, double sigma)
\item 
double \hyperlink{group__gStorm_ga3a78c1d136f9878f2a14cd03ffcd6ba7}{diff\_\-log\_\-log\_\-normal} (double x, double mu, double sigma)
\item 
double \hyperlink{group__gStorm_ga132079a5bc2e1971da76daed8c010d2a}{hess\_\-log\_\-log\_\-normal} (double x, double mu, double sigma)
\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Code dealing with storm imagery (high level). 

Definition in file \hyperlink{storm_8h_source}{storm.h}.



\subsubsection{Function Documentation}
\hypertarget{storm_8h_af75ebcfbdf0264151f425435ba3d26e1}{
\index{storm.h@{storm.h}!log\_\-probability\_\-no\_\-spot@{log\_\-probability\_\-no\_\-spot}}
\index{log\_\-probability\_\-no\_\-spot@{log\_\-probability\_\-no\_\-spot}!storm.h@{storm.h}}
\paragraph[{log\_\-probability\_\-no\_\-spot}]{\setlength{\rightskip}{0pt plus 5cm}double log\_\-probability\_\-no\_\-spot (
\begin{DoxyParamCaption}
\item[{const CVD::SubImage$<$ float $>$ \&}]{im, }
\item[{double}]{variance}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{storm_8h_af75ebcfbdf0264151f425435ba3d26e1}


Find the log probability of an image patch, assuming zero mean and the given variance, and no spot present. 

See also \hyperlink{group__gStorm_ga1a24bd3f98cfef3265ec27f522b790eb}{log\_\-probability\_\-spot()} 
\begin{DoxyParams}{Parameters}
{\em im} & Image \\
\hline
{\em variance} & variance \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The log probability 
\end{DoxyReturn}


Definition at line 202 of file storm.h.


\begin{DoxyCode}
{
    double logprob_part=0;
    for(int y=0; y < im.size().y; y++)
        for(int x=0; x < im.size().x; x++)
            logprob_part -= im[y][x] * im[y][x];
    return logprob_part/(2*variance) - im.size().area() * log(2*M_PI*variance)/2;
      

}
\end{DoxyCode}
