28#ifndef itkTestDriverInclude_h
29#define itkTestDriverInclude_h
46#include "itksys/Process.h"
47#include "itksys/SystemTools.hxx"
48#include "vnl/vnl_sample.h"
63 const char * baselineImageFilename,
65 double intensityTolerance,
67 unsigned int radiusTolerance = 0,
68 bool verifyInputInformation =
true,
69 double coordinateTolerance = 1.0e-6,
70 double directionTolerance = 1.0e-6);
73HashTestImage(
const char * testImageFilename,
const std::string & md5hash);
76extern std::map<std::string, int>
97using HashPairType = std::pair<const char *, std::vector<std::string>>;
99extern std::vector<HashPairType> &
141 const char * baselineImageFilename,
143 double intensityTolerance,
145 unsigned int radiusTolerance,
146 bool verifyInputInformation,
147 double coordinateTolerance,
148 double directionTolerance);
152HashTestImage(
const char * testImageFilename,
const std::vector<std::string> & baselineMD5Vector);
163extern 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)
constexpr int ITK_TEST_DIMENSION_MAX
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 ProcessArguments(int *argc, ArgumentStringType *argv, ProcessedOutputType *processedOutput=nullptr)
RedirectOutputParameters & GetRedirectOutputParameters()
std::pair< char *, char * > ComparePairType
int HashTestImage(const char *testImageFilename, const std::string &md5hash)
std::pair< const char *, std::vector< std::string > > HashPairType
char ** ArgumentStringType
CommonEnums::IOComponent IOComponentEnum
unsigned long SizeValueType
CommonEnums::IOPixel IOPixelEnum
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