Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkTestMain.h File Reference

Go to the source code of this file.

Defines

#define ITK_TEST_DIMENSION_MAX   6
#define REGISTER_TEST(test)

Typedefs

typedef int(* MainFuncPointer )(int, char *[])

Functions

int main (int ac, char *av[])
void PrintAvailableTests ()
void RegisterTests ()
std::map< std::string, int > RegressionTestBaselines (char *)
int RegressionTestImage (const char *testImageFilename, const char *baselineImageFilename, int reportErrors, double intensityTolerance=2.0, unsigned int numberOfPixelsTolerance=0, unsigned int radiusTolerance=0)

Variables

std::map< std::string,
MainFuncPointer
StringToTestFunctionMap

Define Documentation

#define ITK_TEST_DIMENSION_MAX   6

Definition at line 46 of file itkTestMain.h.

Referenced by RegressionTestImage().

#define REGISTER_TEST ( test   ) 
Value:
extern int test(int, char* [] ); \
StringToTestFunctionMap[#test] = test

Definition at line 51 of file itkTestMain.h.


Typedef Documentation

typedef int(* MainFuncPointer)(int, char *[])

Definition at line 48 of file itkTestMain.h.


Function Documentation

int main ( int  ac,
char *  av[] 
)
void PrintAvailableTests (  ) 

Definition at line 65 of file itkTestMain.h.

References StringToTestFunctionMap.

Referenced by main().

void RegisterTests (  ) 

Referenced by main().

std::map< std::string, int > RegressionTestBaselines ( char *  baselineFilename  ) 

Definition at line 465 of file itkTestMain.h.

Referenced by main().

int RegressionTestImage ( const char *  testImageFilename,
const char *  baselineImageFilename,
int  reportErrors,
double  intensityTolerance = 2.0,
unsigned int  numberOfPixelsTolerance = 0,
unsigned int  radiusTolerance = 0 
)

Definition at line 239 of file itkTestMain.h.

References ITK_TEST_DIMENSION_MAX, and HardConnectedComponentImageFilter::New().

Referenced by main().


Variable Documentation

std::map<std::string, MainFuncPointer> StringToTestFunctionMap

Definition at line 49 of file itkTestMain.h.

Referenced by main(), and PrintAvailableTests().


Generated at Fri Apr 16 20:05:02 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000