ThreeB 1.1
Functions
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)

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

Parameters:
imagesContainer to check

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().

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