|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
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.0
e-6,
66 double directionTolerance = 1.0
e-6);
69 HashTestImage(
const char * testImageFilename,
const std::string md5hash);
72 extern std::map<std::string, int>
93 using HashPairType = std::pair<const char *, std::vector<std::string>>;
95 extern std::vector<HashPairType> &
137 const char * baselineImageFilename,
139 double intensityTolerance,
141 unsigned int radiusTolerance,
142 bool verifyInputInformation,
143 double coordinateTolerance,
144 double directionTolerance);
148 HashTestImage(
const char * testImageFilename,
const std::vector<std::string> & baselineMD5Vector);
159 extern std::map<std::string, int>
RegressionTestParameters & GetRegressionTestParameters()
double directionTolerance
std::pair< char *, char * > ComparePairType
int ProcessArguments(int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=nullptr)
bool externalProcessMustBeCalled
unsigned int numberOfPixelsTolerance
std::vector< ComparePairType > compareList
double coordinateTolerance
char ** ArgumentStringType
std::vector< HashPairType > & GetHashTestList()
int HashTestImage(const char *testImageFilename, const std::string md5hash)
std::map< std::string, int > RegressionTestBaselines(char *)
bool verifyInputInformation
ArgumentsList add_before_env_with_sep
ArgumentsList add_before_env
ArgumentsList add_before_libpath
RedirectOutputParameters & GetRedirectOutputParameters()
std::pair< const char *, std::vector< std::string > > HashPairType
static constexpr double e
unsigned int radiusTolerance
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::vector< char * > ArgumentsList
double intensityTolerance
unsigned long SizeValueType
void GetImageType(const char *fileName, itk::IOPixelEnum &pixelType, itk::IOComponentEnum &componentType)
Get the PixelType and ComponentType from fileName.