\hypertarget{group__gDebug}{
\subsection{Useful debugging functions.}
\label{group__gDebug}\index{Useful debugging functions.@{Useful debugging functions.}}
}
\subsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class C $>$ }\\void \hyperlink{group__gDebug_ga5dce7d58345699b128d45e025e553b8d}{assert\_\-same\_\-size} (const C \&images)
\end{DoxyCompactItemize}


\subsubsection{Function Documentation}
\hypertarget{group__gDebug_ga5dce7d58345699b128d45e025e553b8d}{
\index{Useful debugging functions.@{Useful debugging functions.}!assert\_\-same\_\-size@{assert\_\-same\_\-size}}
\index{assert\_\-same\_\-size@{assert\_\-same\_\-size}!Useful debugging functions.@{Useful debugging functions.}}
\paragraph[{assert\_\-same\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class C $>$ void assert\_\-same\_\-size (
\begin{DoxyParamCaption}
\item[{const C \&}]{images}
\end{DoxyParamCaption}
)}}
\label{group__gDebug_ga5dce7d58345699b128d45e025e553b8d}


Determines that all images in the incoming container are the same size, and that the container is not empty. 


\begin{DoxyParams}{Parameters}
{\em images} & Container to check \\
\hline
\end{DoxyParams}


Definition at line 30 of file debug.h.



Referenced by auto\_\-fixed\_\-scaling(), average\_\-image(), FitSpots::FitSpots(), generate\_\-state\_\-parameters\_\-ye\_\-olde(), SampledMultispot::GibbsSampler::GibbsSampler(), and SampledMultispot::GibbsSampler2::GibbsSampler2().


\begin{DoxyCode}
{
    assert(!images.empty());
    for(typename C::const_iterator i=images.begin(); i != images.end(); i++)
        assert(i->size() == images.front().size());
}
\end{DoxyCode}
