ITK  6.0.0
Insight 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::IOPixelEnum &pixelType, itk::IOComponentEnum &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 *argc, ArgumentStringType *argv, 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

◆ ITK_TEST_DIMENSION_MAX

#define ITK_TEST_DIMENSION_MAX   6

Typedef Documentation

◆ ArgumentsList

using ArgumentsList = std::vector<char *>

Definition at line 102 of file itkTestDriverInclude.h.

◆ ArgumentStringType

using ArgumentStringType = char **

Definition at line 98 of file itkTestDriverInclude.h.

◆ ComparePairType

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

Definition at line 75 of file itkTestDriverInclude.h.

◆ HashPairType

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

Definition at line 93 of file itkTestDriverInclude.h.

Function Documentation

◆ GetHashTestList()

std::vector<HashPairType>& GetHashTestList ( )

◆ GetImageType()

void GetImageType ( const char *  fileName,
itk::IOPixelEnum pixelType,
itk::IOComponentEnum componentType 
)

Get the PixelType and ComponentType from fileName.

◆ GetRedirectOutputParameters()

RedirectOutputParameters& GetRedirectOutputParameters ( )

◆ GetRegressionTestParameters()

RegressionTestParameters& GetRegressionTestParameters ( )

◆ HashTestImage() [1/2]

int HashTestImage ( const char *  testImageFilename,
const std::string  md5hash 
)

◆ HashTestImage() [2/2]

int HashTestImage ( const char *  testImageFilename,
const std::vector< std::string > &  baselineMD5Vector 
)

◆ ProcessArguments()

int ProcessArguments ( int *  argc,
ArgumentStringType argv,
ProcessedOutputType processedOutput = nullptr 
)

◆ RegressionTestBaselines()

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

◆ RegressionTestImage()

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 
)

◆ usage()

void usage ( )