21 #ifndef mia_3d_fifotestfixture_hh
22 #define mia_3d_fifotestfixture_hh
43 template <
typename A,
typename B>
44 void prepare(
const A *input_data,
const B *test_data,
const C2DBounds& size,
size_t slices);
51 template <
typename A,
typename B>
56 size_t slice_size = size.
x * size.
y;
57 cvdebug() <<
"the test image size is " << size <<
"\n";
59 for (
size_t i = 0; i < n_slices; ++i, input_data += slice_size, test_data += slice_size) {
C2DImage::Pointer P2DImage
Shared pointer representation of the 2D Image.
The class to provide filtering of series of 2D images as if they where 3D images.
This is the template version of a 2D image that is used for holding real data.
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define NS_MIA_END
conveniance define to end the mia namespace
std::vector< P2DImage > C2DImageStack
static F::result_type filter(const F &f, const B &b)
a fixture to test FIFO filtering
C2DImageStack m_test_data
void prepare(const A *input_data, const B *test_data, const C2DBounds &size, size_t slices)
void call_test(C2DImageFifoFilter &filter) const