CustusX  15.4.0-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxtest::Utilities Class Reference

#include <cxtestUtilities.h>

Static Public Member Functions

static QString getDataRoot (QString suffix="")
 
static vtkImageDataPtr create3DVtkImageData (Eigen::Array3i dim=Eigen::Array3i(3, 3, 3), const unsigned int voxelValue=100)
 
static cx::ImagePtr create3DImage (Eigen::Array3i dim=Eigen::Array3i(3, 3, 3), const unsigned int voxelValue=100)
 
static cx::ImagePtr create3DImage (Eigen::Array3i dim, cx::Vector3D spacing, const unsigned int voxelValue)
 
static std::vector< cx::ImagePtrcreate3DImages (unsigned int imageCount, Eigen::Array3i dim=Eigen::Array3i(3, 3, 3), const unsigned int voxelValue=100)
 
static unsigned int getNumberOfVoxelsAboveThreshold (vtkImageDataPtr image, int threshold, int component=0)
 
static unsigned int getNumberOfNonZeroVoxels (vtkImageDataPtr image)
 
static double getFractionOfVoxelsAboveThreshold (vtkImageDataPtr image, int threshold, int component=0)
 
static void sleep_sec (int seconds)
 

Detailed Description

A collection of functionality used for testing.

Date
May 21, 2013
Author
Janne Beate Bakeng, SINTEF

Definition at line 78 of file cxtestUtilities.h.

Member Function Documentation

cx::ImagePtr cxtest::Utilities::create3DImage ( Eigen::Array3i  dim = Eigen::Array3i(3,3,3),
const unsigned int  voxelValue = 100 
)
static

Definition at line 82 of file cxtestUtilities.cpp.

cx::ImagePtr cxtest::Utilities::create3DImage ( Eigen::Array3i  dim,
cx::Vector3D  spacing,
const unsigned int  voxelValue 
)
static

Definition at line 87 of file cxtestUtilities.cpp.

std::vector< cx::ImagePtr > cxtest::Utilities::create3DImages ( unsigned int  imageCount,
Eigen::Array3i  dim = Eigen::Array3i(3,3,3),
const unsigned int  voxelValue = 100 
)
static

Definition at line 98 of file cxtestUtilities.cpp.

vtkImageDataPtr cxtest::Utilities::create3DVtkImageData ( Eigen::Array3i  dim = Eigen::Array3i(3,3,3),
const unsigned int  voxelValue = 100 
)
static

Definition at line 77 of file cxtestUtilities.cpp.

QString cxtest::Utilities::getDataRoot ( QString  suffix = "")
static

Definition at line 67 of file cxtestUtilities.cpp.

double cxtest::Utilities::getFractionOfVoxelsAboveThreshold ( vtkImageDataPtr  image,
int  threshold,
int  component = 0 
)
static

Definition at line 129 of file cxtestUtilities.cpp.

unsigned int cxtest::Utilities::getNumberOfNonZeroVoxels ( vtkImageDataPtr  image)
static

Definition at line 124 of file cxtestUtilities.cpp.

unsigned int cxtest::Utilities::getNumberOfVoxelsAboveThreshold ( vtkImageDataPtr  image,
int  threshold,
int  component = 0 
)
static

Definition at line 109 of file cxtestUtilities.cpp.

void cxtest::Utilities::sleep_sec ( int  seconds)
static

Definition at line 139 of file cxtestUtilities.cpp.


The documentation for this class was generated from the following files: