ITK  4.1.0
Insight Segmentation and Registration Toolkit
Classes | Defines | Typedefs | Functions | Variables
itkTestDriverInclude.h File Reference

Go to the source code of this file.

Classes

struct  ProcessedOutputType
struct  RedirectOutputParameters
struct  RegressionTestParameters

Defines

#define ITK_TEST_DIMENSION_MAX   6

Typedefs

typedef std::vector< char * > ArgumentsList
typedef char ** ArgumentStringType
typedef std::pair< char *, char * > ComparePairType
typedef std::pair< const char
*, std::vector< std::string > > 
HashPairType

Functions

template<typename TImageType >
std::string ComputeHash (const char *testImageFilename)
int HashTestImage (const char *testImageFilename, const std::string md5hash)
int HashTestImage (const char *testImageFilename, const std::vector< std::string > &baselineMD5Vector)
int ProcessArguments (int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=NULL)
std::map< std::string, int > RegressionTestBaselines (char *)
int RegressionTestImage (const char *testImageFilename, const char *baselineImageFilename, int reportErrors, double intensityTolerance,::itk::SizeValueType numberOfPixelsTolerance=0, unsigned int radiusTolerance=0)
void usage ()

Variables

std::vector< HashPairTypehashTestList
RedirectOutputParameters redirectOutputParameters
RegressionTestParameters regressionTestParameters

Define Documentation

#define ITK_TEST_DIMENSION_MAX   6

Definition at line 62 of file itkTestDriverInclude.h.

Referenced by HashTestImage(), and RegressionTestImage().


Typedef Documentation

typedef std::vector< char * > ArgumentsList

Definition at line 99 of file itkTestDriverInclude.h.

typedef char** ArgumentStringType

Definition at line 95 of file itkTestDriverInclude.h.

typedef std::pair< char *, char * > ComparePairType

Definition at line 77 of file itkTestDriverInclude.h.

typedef std::pair< const char *, std::vector<std::string> > HashPairType

Definition at line 91 of file itkTestDriverInclude.h.


Function Documentation

template<typename TImageType >
std::string ComputeHash ( const char *  testImageFilename)

Definition at line 689 of file itkTestDriverInclude.h.

References itk::Math::e, and itk::ExceptionObject::GetDescription().

int HashTestImage ( const char *  testImageFilename,
const std::string  md5hash 
)
int HashTestImage ( const char *  testImageFilename,
const std::vector< std::string > &  baselineMD5Vector 
)
int ProcessArguments ( int *  ac,
ArgumentStringType av,
ProcessedOutputType processedOutput = NULL 
)
std::map< std::string, int > RegressionTestBaselines ( char *  baselineFilename)

Definition at line 882 of file itkTestDriverInclude.h.

int RegressionTestImage ( const char *  testImageFilename,
const char *  baselineImageFilename,
int  reportErrors,
double  intensityTolerance,
::itk::SizeValueType  numberOfPixelsTolerance = 0,
unsigned int  radiusTolerance = 0 
)
void usage ( )

Definition at line 120 of file itkTestDriverInclude.h.

Referenced by ProcessArguments().


Variable Documentation

std::vector< HashPairType > hashTestList

Definition at line 93 of file itkTestDriverInclude.h.

Definition at line 118 of file itkTestDriverInclude.h.

Definition at line 88 of file itkTestDriverInclude.h.