12 #ifndef CXTESTUTILITIES_H_
13 #define CXTESTUTILITIES_H_
15 #include "cxtestutilities_export.h"
23 #include "sscConfig.h"
30 static inline QString GetDataRoot();
31 static inline QString ExpandDataFileName(QString fileName);
37 QString dataRoot = SSC_DATA_ROOT;
44 QString dataRoot = SSC_DATA_ROOT;
45 QString expandedName = dataRoot + fileName;
58 static QString getDataRoot(QString suffix =
"");
59 static vtkImageDataPtr create3DVtkImageData(Eigen::Array3i dim = Eigen::Array3i(3,3,3),
const unsigned int voxelValue = 100);
60 static cx::ImagePtr create3DImage(Eigen::Array3i dim = Eigen::Array3i(3,3,3),
const unsigned int voxelValue = 100);
62 static std::vector<cx::ImagePtr> create3DImages(
unsigned int imageCount, Eigen::Array3i dim = Eigen::Array3i(3,3,3),
const unsigned int voxelValue = 100);
64 static unsigned int getNumberOfVoxelsAboveThreshold(
vtkImageDataPtr image,
int threshold,
int component=0);
66 static double getFractionOfVoxelsAboveThreshold(
vtkImageDataPtr image,
int threshold,
int component=0);
68 static void sleep_sec(
int seconds);
82 #define EXPORT_DUMMY_CLASS_FOR_LINKING_ON_WINDOWS_IN_LIB_WITHOUT_EXPORTED_CLASS(EXPORT_MACRO) \
83 class EXPORT_MACRO DummyTestClassForLinkingOnWindows \