33 #ifndef CXTESTUTILITIES_H_
34 #define CXTESTUTILITIES_H_
36 #include "cxtestutilities_export.h"
44 #include "sscConfig.h"
53 static inline QString GetDataRoot();
54 static inline QString ExpandDataFileName(QString fileName);
60 QString dataRoot = SSC_DATA_ROOT;
67 QString dataRoot = SSC_DATA_ROOT;
68 QString expandedName = dataRoot + fileName;
81 static QString getDataRoot(QString suffix =
"");
82 static vtkImageDataPtr create3DVtkImageData(Eigen::Array3i dim = Eigen::Array3i(3,3,3),
const unsigned int voxelValue = 100);
83 static cx::ImagePtr create3DImage(Eigen::Array3i dim = Eigen::Array3i(3,3,3),
const unsigned int voxelValue = 100);
85 static std::vector<cx::ImagePtr> create3DImages(
unsigned int imageCount, Eigen::Array3i dim = Eigen::Array3i(3,3,3),
const unsigned int voxelValue = 100);
87 static unsigned int getNumberOfVoxelsAboveThreshold(
vtkImageDataPtr image,
int threshold,
int component=0);
89 static double getFractionOfVoxelsAboveThreshold(
vtkImageDataPtr image,
int threshold,
int component=0);
91 static void sleep_sec(
int seconds);
boost::shared_ptr< class Image > ImagePtr
static QString GetDataRoot()
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
static QString ExpandDataFileName(QString fileName)