ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include "itksys/Process.h"
#include "itkWin32Header.h"
#include <map>
#include <algorithm>
#include <string>
#include <iostream>
#include <fstream>
#include "itkMultiThreader.h"
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImageRegionConstIterator.h"
#include "itkTestingStretchIntensityImageFilter.h"
#include "itkTestingExtractSliceImageFilter.h"
#include "itkTestingComparisonImageFilter.h"
#include "itkTestingHashImageFilter.h"
#include "itksys/SystemTools.hxx"
#include "itkIntTypes.h"
#include "vnl/vnl_sample.h"
#include "itkTestingComparisonImageFilter.hxx"
Go to the source code of this file.
Classes | |
struct | ProcessedOutputType |
struct | RedirectOutputParameters |
struct | RegressionTestParameters |
Macros | |
#define | ITK_TEST_DIMENSION_MAX 6 |
Typedefs | |
typedef std::vector< char * > | ArgumentsList |
typedef char ** | ArgumentStringType |
typedef std::pair< char *, char * > | ComparePairType |
typedef std::pair< const char *, std::vector< std::string > > | HashPairType |
Functions | |
template<typename TImageType > | |
std::string | ComputeHash (const char *testImageFilename) |
int | HashTestImage (const char *testImageFilename, const std::string md5hash) |
int | HashTestImage (const char *testImageFilename, const std::vector< std::string > &baselineMD5Vector) |
static char | my_to_lower (const char c) |
int | ProcessArguments (int *ac, ArgumentStringType *av, ProcessedOutputType *processedOutput=NULL) |
std::map< std::string, int > | RegressionTestBaselines (char *) |
int | RegressionTestImage (const char *testImageFilename, const char *baselineImageFilename, int reportErrors, double intensityTolerance,::itk::SizeValueType numberOfPixelsTolerance=0, unsigned int radiusTolerance=0) |
void | usage () |
Variables | |
std::vector< HashPairType > | hashTestList |
RedirectOutputParameters | redirectOutputParameters |
RegressionTestParameters | regressionTestParameters |
#define ITK_TEST_DIMENSION_MAX 6 |
Definition at line 63 of file itkTestDriverInclude.h.
Referenced by HashTestImage(), and RegressionTestImage().
typedef std::vector< char * > ArgumentsList |
Definition at line 100 of file itkTestDriverInclude.h.
typedef char** ArgumentStringType |
Definition at line 96 of file itkTestDriverInclude.h.
typedef std::pair< char *, char * > ComparePairType |
Definition at line 78 of file itkTestDriverInclude.h.
typedef std::pair< const char *, std::vector<std::string> > HashPairType |
Definition at line 92 of file itkTestDriverInclude.h.
std::string ComputeHash | ( | const char * | testImageFilename | ) |
Definition at line 706 of file itkTestDriverInclude.h.
References itk::Math::e, and itk::ExceptionObject::GetDescription().
int HashTestImage | ( | const char * | testImageFilename, |
const std::string | md5hash | ||
) |
int HashTestImage | ( | const char * | testImageFilename, |
const std::vector< std::string > & | baselineMD5Vector | ||
) |
Definition at line 735 of file itkTestDriverInclude.h.
References itk::ImageIOBase::CHAR, itk::ImageIOFactory::CreateImageIO(), itk::ImageIOBase::DOUBLE, itk::Math::e, itk::ImageIOBase::FLOAT, itk::ImageIOBase::INT, itk::SmartPointer< TObjectType >::IsNull(), ITK_TEST_DIMENSION_MAX, itk::ImageIOBase::LONG, itk::ImageIOFactory::ReadMode, itk::ImageIOBase::SHORT, itk::ImageIOBase::UCHAR, itk::ImageIOBase::UINT, itk::ImageIOBase::ULONG, itk::ImageIOBase::UNKNOWNCOMPONENTTYPE, and itk::ImageIOBase::USHORT.
|
static |
Definition at line 191 of file itkTestDriverInclude.h.
Referenced by ProcessArguments().
int ProcessArguments | ( | int * | ac, |
ArgumentStringType * | av, | ||
ProcessedOutputType * | processedOutput = NULL |
||
) |
Definition at line 196 of file itkTestDriverInclude.h.
References RegressionTestParameters::compareList, itk::FloatingPointExceptions::Enable(), RedirectOutputParameters::fileName, RegressionTestParameters::intensityTolerance, my_to_lower(), RegressionTestParameters::numberOfPixelsTolerance, RegressionTestParameters::radiusTolerance, RedirectOutputParameters::redirect, and usage().
Referenced by ProcessArgumentsAndRegisterBuiltInFactories(), and ProcessArgumentsAndRegisterRequiredFactories().
std::map< std::string, int > RegressionTestBaselines | ( | char * | baselineFilename | ) |
Definition at line 899 of file itkTestDriverInclude.h.
int RegressionTestImage | ( | const char * | testImageFilename, |
const char * | baselineImageFilename, | ||
int | reportErrors, | ||
double | intensityTolerance, | ||
::itk::SizeValueType | numberOfPixelsTolerance = 0 , |
||
unsigned int | radiusTolerance = 0 |
||
) |
Definition at line 460 of file itkTestDriverInclude.h.
References itk::Math::e, itk::ExceptionObject::GetDescription(), ITK_TEST_DIMENSION_MAX, and itk::NumericTraits< T >::max().
void usage | ( | ) |
Definition at line 121 of file itkTestDriverInclude.h.
Referenced by ProcessArguments().
std::vector< HashPairType > hashTestList |
Definition at line 94 of file itkTestDriverInclude.h.
RedirectOutputParameters redirectOutputParameters |
Definition at line 119 of file itkTestDriverInclude.h.
RegressionTestParameters regressionTestParameters |
Definition at line 89 of file itkTestDriverInclude.h.