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
58 const char *baselineImageFilename,
60 double intensityTolerance,
62 unsigned int radiusTolerance = 0,
63 bool verifyInputInformation =
true,
64 double coordinateTolerance = 1.0
e-6,
65 double directionTolerance = 1.0
e-6);
68 const std::string md5hash );
90 using HashPairType = std::pair< const char *, std::vector<std::string> >;
131 const char *baselineImageFilename,
133 double intensityTolerance,
135 unsigned int radiusTolerance,
136 bool verifyInputInformation,
137 double coordinateTolerance,
138 double directionTolerance);
142 const std::vector<std::string> &baselineMD5Vector );
unsigned int numberOfPixelsTolerance
ArgumentsList add_before_libpath
char ** ArgumentStringType
unsigned long SizeValueType
std::vector< char * > ArgumentsList
void GetImageType(const char *fileName, itk::ImageIOBase::IOPixelType &pixelType, itk::ImageIOBase::IOComponentType &componentType)
Get the PixelType and ComponentType from fileName.
std::pair< char *, char * > ComparePairType
ArgumentsList add_before_env_with_sep
bool verifyInputInformation
int HashTestImage(const char *testImageFilename, const std::string md5hash)
ArgumentsList add_before_env
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)
std::map< std::string, int > RegressionTestBaselines(char *)
bool externalProcessMustBeCalled
std::vector< HashPairType > & GetHashTestList()
RedirectOutputParameters & GetRedirectOutputParameters()
RegressionTestParameters & GetRegressionTestParameters()
std::pair< const char *, std::vector< std::string > > HashPairType
unsigned int radiusTolerance
static constexpr double e
The base of the natural logarithm or Euler's number
std::vector< ComparePairType > compareList
double coordinateTolerance
double directionTolerance
int ProcessArguments(int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=nullptr)
double intensityTolerance