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, MainFuncPointerStringToTestFunctionMap


Define Documentation

#define ITK_TEST_DIMENSION_MAX   6

Definition at line 44 of file itkTestMain.h.

Referenced by RegressionTestImage().

#define REGISTER_TEST ( test   ) 

Value:

extern int test(int, char* [] ); \
StringToTestFunctionMap[#test] = test

Definition at line 49 of file itkTestMain.h.


Typedef Documentation

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

Definition at line 46 of file itkTestMain.h.


Function Documentation

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

Examples:
DataRepresentation/Image/Image1.cxx, DataRepresentation/Image/Image2.cxx, DataRepresentation/Image/RGBImage.cxx, DataRepresentation/Image/VectorImage.cxx, DataRepresentation/Mesh/PointSet1.cxx, DataRepresentation/Mesh/PointSet2.cxx, DataRepresentation/Mesh/PointSet3.cxx, DataRepresentation/Mesh/PointSetWithCovariantVectors.cxx, DataRepresentation/Mesh/PointSetWithVectors.cxx, DataRepresentation/Mesh/RGBPointSet.cxx, Examples/Iterators/ImageLinearIteratorWithIndex.cxx, Iterators/ImageRegionIterator.cxx, and Iterators/ImageRegionIteratorWithIndex.cxx.

Definition at line 76 of file itkTestMain.h.

References NULL, PrintAvailableTests(), RegisterTests(), RegressionTestBaselines(), RegressionTestImage(), itk::MultiThreader::SetGlobalDefaultNumberOfThreads(), and StringToTestFunctionMap.

void PrintAvailableTests (  ) 

Definition at line 63 of file itkTestMain.h.

References StringToTestFunctionMap.

Referenced by main().

void RegisterTests (  ) 

Referenced by main().

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

Definition at line 425 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 232 of file itkTestMain.h.

References ITK_TEST_DIMENSION_MAX.

Referenced by main().


Variable Documentation

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

Definition at line 47 of file itkTestMain.h.

Referenced by main(), and PrintAvailableTests().


Generated at Wed Jul 30 00:08:49 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000