ITK  4.8.0
Insight Segmentation and Registration Toolkit
Classes | Macros | Typedefs | Functions | Variables
itkTestDriverInclude.h File Reference
#include "itksys/Process.h"
#include "itkWin32Header.h"
#include <map>
#include <algorithm>
#include <string>
#include <iostream>
#include <fstream>
#include "itkMultiThreader.h"
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImageRegionConstIterator.h"
#include "itkTestingStretchIntensityImageFilter.h"
#include "itkTestingExtractSliceImageFilter.h"
#include "itkTestingComparisonImageFilter.h"
#include "itkTestingHashImageFilter.h"
#include "itksys/SystemTools.hxx"
#include "itkIntTypes.h"
#include "vnl/vnl_sample.h"
#include "itkTestingComparisonImageFilter.hxx"
+ Include dependency graph for itkTestDriverInclude.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ProcessedOutputType
 
struct  RedirectOutputParameters
 
struct  RegressionTestParameters
 

Macros

#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)
 
static char my_to_lower (const char c)
 
int ProcessArguments (int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=nullptr)
 
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
 

Macro Definition Documentation

#define ITK_TEST_DIMENSION_MAX   6

Typedef Documentation

typedef std::vector< char * > ArgumentsList

Definition at line 100 of file itkTestDriverInclude.h.

typedef char** ArgumentStringType

Definition at line 96 of file itkTestDriverInclude.h.

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

Definition at line 78 of file itkTestDriverInclude.h.

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

Definition at line 92 of file itkTestDriverInclude.h.

Function Documentation

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

Definition at line 706 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 
)
static char my_to_lower ( const char  c)
static

Definition at line 191 of file itkTestDriverInclude.h.

Referenced by ProcessArguments().

int ProcessArguments ( int *  ac,
ArgumentStringType av,
ProcessedOutputType processedOutput = nullptr 
)
std::map< std::string, int > RegressionTestBaselines ( char *  baselineFilename)

Definition at line 899 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 ( )

Variable Documentation

std::vector< HashPairType > hashTestList

Definition at line 94 of file itkTestDriverInclude.h.

RedirectOutputParameters redirectOutputParameters

Definition at line 119 of file itkTestDriverInclude.h.

RegressionTestParameters regressionTestParameters

Definition at line 89 of file itkTestDriverInclude.h.