|
ITK
5.2.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,
69 HashTestImage(
const char * testImageFilename,
const std::string md5hash);
72 extern std::map<std::string, int>
80 std::vector<ComparePairType> compareList;
93 using HashPairType = std::pair<const char *, std::vector<std::string>>;
95 extern std::vector<HashPairType> &
137 const char * baselineImageFilename,
148 HashTestImage(
const char * testImageFilename,
const std::vector<std::string> & baselineMD5Vector);
159 extern std::map<std::string, int>
RegressionTestParameters & GetRegressionTestParameters()
std::pair< char *, char * > ComparePairType
int ProcessArguments(int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=nullptr)
double intensityTolerance
unsigned int numberOfPixelsTolerance
double coordinateTolerance
bool externalProcessMustBeCalled
struct _RedirectOutputParameters { bool redirect RedirectOutputParameters
char ** ArgumentStringType
bool verifyInputInformation
std::vector< HashPairType > & GetHashTestList()
int HashTestImage(const char *testImageFilename, const std::string md5hash)
double directionTolerance
std::map< std::string, int > RegressionTestBaselines(char *)
ArgumentsList add_before_env_with_sep
ArgumentsList add_before_env
ArgumentsList add_before_libpath
unsigned int radiusTolerance
RedirectOutputParameters & GetRedirectOutputParameters()
std::pair< const char *, std::vector< std::string > > HashPairType
static constexpr double e
struct _RegressionTestParameters { std::vector< ComparePairType > compareList RegressionTestParameters
std::vector< char * > ArgumentsList
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)
unsigned long SizeValueType
void GetImageType(const char *fileName, itk::IOPixelEnum &pixelType, itk::IOComponentEnum &componentType)
Get the PixelType and ComponentType from fileName.