28#ifndef itkTestDriverInclude_h
29#define itkTestDriverInclude_h
46#include "itksys/Process.h"
47#include "itksys/SystemTools.hxx"
48#include "vnl/vnl_sample.h"
55#define ITK_TEST_DIMENSION_MAX 6
59 const char * baselineImageFilename,
61 double intensityTolerance,
63 unsigned int radiusTolerance = 0,
64 bool verifyInputInformation =
true,
65 double coordinateTolerance = 1.0e-6,
66 double directionTolerance = 1.0e-6);
69HashTestImage(
const char * testImageFilename,
const std::string md5hash);
72extern std::map<std::string, int>
93using HashPairType = std::pair<const char *, std::vector<std::string>>;
95extern std::vector<HashPairType> &
137 const char * baselineImageFilename,
139 double intensityTolerance,
141 unsigned int radiusTolerance,
142 bool verifyInputInformation,
143 double coordinateTolerance,
144 double directionTolerance);
148HashTestImage(
const char * testImageFilename,
const std::vector<std::string> & baselineMD5Vector);
159extern std::map<std::string, int>
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)
int ProcessArguments(int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=nullptr)
RegressionTestParameters & GetRegressionTestParameters()
void GetImageType(const char *fileName, itk::IOPixelEnum &pixelType, itk::IOComponentEnum &componentType)
Get the PixelType and ComponentType from fileName.
std::map< std::string, int > RegressionTestBaselines(char *)
std::vector< HashPairType > & GetHashTestList()
std::vector< char * > ArgumentsList
int HashTestImage(const char *testImageFilename, const std::string md5hash)
RedirectOutputParameters & GetRedirectOutputParameters()
std::pair< char *, char * > ComparePairType
char ** ArgumentStringType
std::pair< const char *, std::vector< std::string > > HashPairType
unsigned long SizeValueType
ArgumentsList add_before_env
ArgumentsList add_before_env_with_sep
ArgumentsList add_before_libpath
bool externalProcessMustBeCalled
double directionTolerance
unsigned int numberOfPixelsTolerance
double coordinateTolerance
double intensityTolerance
std::vector< ComparePairType > compareList
bool verifyInputInformation
unsigned int radiusTolerance