CustusX  22.04-rc5
An IGT application
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 55 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 61 of file cxtestUtilities.cpp.

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

Definition at line 66 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 77 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 56 of file cxtestUtilities.cpp.

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

Definition at line 46 of file cxtestUtilities.cpp.

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

Definition at line 108 of file cxtestUtilities.cpp.

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

Definition at line 103 of file cxtestUtilities.cpp.

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

Definition at line 88 of file cxtestUtilities.cpp.

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

Definition at line 118 of file cxtestUtilities.cpp.


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