ITK  5.0.0
Insight Segmentation and Registration Toolkit
Classes | Macros | Typedefs | Functions
itkTestDriverInclude.h File Reference
#include <algorithm>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "itksys/Process.h"
#include "itksys/SystemTools.hxx"
#include "vnl/vnl_sample.h"
#include "itkFloatingPointExceptions.h"
#include "itkImageIOBase.h"
#include "itkIntTypes.h"
#include "itkWin32Header.h"
+ 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

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

Functions

std::vector< HashPairType > & GetHashTestList ()
 
void GetImageType (const char *fileName, itk::ImageIOBase::IOPixelType &pixelType, itk::ImageIOBase::IOComponentType &componentType)
 
RedirectOutputParametersGetRedirectOutputParameters ()
 
RegressionTestParametersGetRegressionTestParameters ()
 
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=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, bool verifyInputInformation=true, double coordinateTolerance=1.0e-6, double directionTolerance=1.0e-6)
 
void usage ()
 

Macro Definition Documentation

#define ITK_TEST_DIMENSION_MAX   6

Typedef Documentation

using ArgumentsList = std::vector< char * >

Definition at line 98 of file itkTestDriverInclude.h.

using ArgumentStringType = char **

Definition at line 94 of file itkTestDriverInclude.h.

using ComparePairType = std::pair< char *, char * >

Definition at line 73 of file itkTestDriverInclude.h.

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

Definition at line 90 of file itkTestDriverInclude.h.

Function Documentation

std::vector< HashPairType >& GetHashTestList ( )
void GetImageType ( const char *  fileName,
itk::ImageIOBase::IOPixelType pixelType,
itk::ImageIOBase::IOComponentType componentType 
)

Get the PixelType and ComponentType from fileName.

RedirectOutputParameters& GetRedirectOutputParameters ( )
RegressionTestParameters& GetRegressionTestParameters ( )
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 = 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,
bool  verifyInputInformation = true,
double  coordinateTolerance = 1.0e-6,
double  directionTolerance = 1.0e-6 
)
void usage ( )