15 #ifndef itkImageToImageRegistrationMethodTestingHelper_h 16 #define itkImageToImageRegistrationMethodTestingHelper_h 18 #include "itkImageFileReader.h" 19 #include "itkImageFileWriter.h" 20 #include "itkResampleImageFilter.h" 21 #include "itkTestingComparisonImageFilter.h" 31 template <
class TRegistrationMethod>
35 typedef TRegistrationMethod RegistrationMethodType;
36 typedef typename RegistrationMethodType::ImageType ImageType;
37 typedef typename RegistrationMethodType::Pointer RegistrationMethodPointer;
39 typedef itk::ImageFileReader<ImageType> ImageReaderType;
40 typedef itk::ImageFileWriter<ImageType> ImageWriterType;
42 typedef typename ImageReaderType::Pointer ImageReaderPointer;
43 typedef typename ImageWriterType::Pointer ImageWriterPointer;
45 typedef ResampleImageFilter<ImageType, ImageType> ResampleFilterType;
46 typedef typename ResampleFilterType::Pointer ResampleFilterPointer;
48 typedef itk::Testing::ComparisonImageFilter<ImageType, ImageType> DifferenceFilterType;
49 typedef typename DifferenceFilterType::Pointer DifferenceFilterPointer;
129 RegistrationMethodPointer m_RegistrationMethod;
130 ImageReaderPointer m_FixedImageReader;
131 ImageReaderPointer m_MovingImageReader;
132 ImageWriterPointer m_MovingImageWriter;
133 ImageReaderPointer m_BaselineImageReader;
134 ImageWriterPointer m_DifferenceImageWriter;
135 DifferenceFilterPointer m_DifferenceFilter;
136 ResampleFilterPointer m_ResampleFilter;
137 unsigned long m_NumberOfFailedPixelsTolerance;
138 unsigned long m_RadiusTolerance;
139 double m_IntensityTolerance;
146 #ifndef ITK_MANUAL_INSTANTIATION 147 #include "itkImageToImageRegistrationMethodTestingHelper.txx" void PrepareRegistration()
void PerformRegressionTest()
Simplified inverse ITK transforms.
void SetNumberOfFailedPixelsTolerance(unsigned long numberOfPixels)
void SetMovingImageFileName(const char *filename)
int GetTestResult() const
void ResampleOutputImage()
RegistrationMethodType * GetRegistrationMethod()
void SetFixedImageFileName(const char *filename)
void SetIntensityTolerance(double intensity)
void SetRadiusTolerance(unsigned long radius)
void SetResampledImageFileName(const char *filename)
ImageToImageRegistrationMethodTestingHelper()
void SetBaselineImageFileName(const char *filename)
void SetDifferenceImageFileName(const char *filename)
void ReportImagesMetaData()