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 45 of file itkTestMain.h.

Referenced by RegressionTestImage().

#define REGISTER_TEST ( test   ) 

Value:

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

Definition at line 50 of file itkTestMain.h.


Typedef Documentation

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

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

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

void PrintAvailableTests (  ) 

Definition at line 64 of file itkTestMain.h.

References StringToTestFunctionMap.

Referenced by main().

void RegisterTests (  ) 

Referenced by main().

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

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

References ITK_TEST_DIMENSION_MAX.

Referenced by main().


Variable Documentation

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

Definition at line 48 of file itkTestMain.h.

Referenced by main(), and PrintAvailableTests().


Generated at Mon Mar 12 03:34:41 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000