STIR  6.2.0
Functions | Variables
BSplines_timing.cxx File Reference

Allows executing timing tests for the stir::BSpline::BSplinesRegularGrid class. More...

#include "stir/Array.h"
#include "stir/IndexRange2D.h"
#include "stir/IndexRange3D.h"
#include "stir/IndexRange4D.h"
#include "stir_experimental/numerics/more_interpolators.h"
#include "stir/numerics/BSplines.h"
#include "stir/numerics/BSplinesRegularGrid.h"
#include <fstream>
#include <libgen.h>
#include <stdlib.h>
#include <sys/time.h>

Functions

void usage (char *name)
 
template<int dims>
double interpolate (int num, int size, BSplineType bs_type, Array< dims, float > grid)
 
int main (int argc, char **argv)
 

Variables

const int MAX_DIMS = 4
 
const int DEF_DIMS = 1
 
const int MAX_NUM = 10000000
 
const int MIN_SIZE = 5
 
const int MAX_TOTAL_GRID_ELEMENTS = 10000000
 
const int DEF_NUM = 1000
 
const int DEF_SIZE = 10
 

Detailed Description

Allows executing timing tests for the stir::BSpline::BSplinesRegularGrid class.

Author
Tim Borgeaud
Kris Thielemans