Useful debugging functions.

Functions

template<class C >
void assert_same_size (const C &images)

Function Documentation

template<class C >
void assert_same_size ( const C &  images  )  [inline]

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

Parameters:
images Container to check

Definition at line 30 of file debug.h.

Referenced by auto_fixed_scaling(), average_image(), NegativeFreeEnergy::compute_with_mask(), fit_spots_historic(), FitSpots::FitSpots(), generate_state_parameters_ye_olde(), SampledMultispot::GibbsSampler::GibbsSampler(), SampledMultispot::GibbsSampler2::GibbsSampler2(), and mean_and_variance().

00031 {
00032     assert(!images.empty());
00033     for(typename C::const_iterator i=images.begin(); i != images.end(); i++)
00034         assert(i->size() == images.front().size());
00035 }

Generated on Wed Nov 2 18:00:00 2011 for BCUBED by  doxygen 1.6.3