ITK  5.1.0
Insight Toolkit
Classes | Macros | Typedefs | Functions | Variables
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
 

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 > >
 
using RedirectOutputParameters = struct _RedirectOutputParameters { bool redirect
 
using RegressionTestParameters = struct _RegressionTestParameters { std::vector< ComparePairType > compareList
 

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 ()
 

Variables

double coordinateTolerance
 
double directionTolerance
 
std::string fileName
 
double intensityTolerance
 
unsigned int numberOfPixelsTolerance
 
unsigned int radiusTolerance
 
bool verifyInputInformation
 

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.

◆ RedirectOutputParameters

using RedirectOutputParameters = struct _RedirectOutputParameters { bool redirect

Definition at line 117 of file itkTestDriverInclude.h.

◆ RegressionTestParameters

using RegressionTestParameters = struct _RegressionTestParameters { std::vector<ComparePairType> compareList

Definition at line 80 of file itkTestDriverInclude.h.

Function Documentation

◆ GetHashTestList()

std::vector<HashPairType>& GetHashTestList ( )

◆ GetImageType()

void GetImageType ( const char *  fileName,
itk::ImageIOBase::IOPixelType pixelType,
itk::ImageIOBase::IOComponentType 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 *  ac,
ArgumentStringType av,
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 ( )

Variable Documentation

◆ coordinateTolerance

double coordinateTolerance

Definition at line 85 of file itkTestDriverInclude.h.

◆ directionTolerance

double directionTolerance

Definition at line 86 of file itkTestDriverInclude.h.

◆ fileName

std::string fileName

◆ intensityTolerance

double intensityTolerance

◆ numberOfPixelsTolerance

unsigned int numberOfPixelsTolerance

◆ radiusTolerance

unsigned int radiusTolerance

◆ verifyInputInformation

bool verifyInputInformation

Definition at line 84 of file itkTestDriverInclude.h.