#include <itksys/SystemTools.hxx>#include <iostream>#include <stdlib.h>#include <itkImage.h>#include <itkAffineTransform.h>#include <itkLinearInterpolateImageFunction.h>#include <itkResampleImageFilter.h>#include <itkTransformFileReader.h>#include <itkTransformFileWriter.h>#include "itkIO.h"#include "ReadMask.h"#include <math.h>#include "itkTestMain.h"Defines | |
| #define | M_PI 3.1415926 |
| #define | M_TWOPI ( 2.0 * M_PI ) |
Typedefs | |
| typedef itk::AffineTransform < double, 3 > | AffineTransformType |
| typedef itk::Image< unsigned char, 3 > | ImageType |
| typedef itk::LinearInterpolateImageFunction < ImageType, double > | InterpolatorType |
| typedef itk::ResampleImageFilter < ImageType, ImageType > | ResampleImageFilter |
Functions | |
| int | BRAINSFitTestDriver (int argc, char **argv) |
| double | DEGREES (double x) |
| static bool | keepOutputs (false) |
| static int | LocalCompareImages (const std::string &imageAname, const std::string &imageBname) |
| static const std::string | PrependName (const std::string &name, const std::string &prefix) |
| static void | Register (const std::string ®istrationProgram, const std::string &fixedVolumeName, const std::string &fixedBinaryVolumeName, const std::string &movingVolumeName, const std::string &movingBinaryVolumeName, const std::string &outputVolumeName, const std::string &outputTransformName, const std::string &transformType, AffineTransformType::InputPointType &CenterOfRotation, AffineTransformType::OutputPointType &TransformedCenter, bool OriginsProvided, const std::string &InitTransformName) |
| void | RegisterTests () |
| static ImageType::Pointer | Resample (ImageType::Pointer &inputImage, AffineTransformType::Pointer &transform) |
| static AffineTransformType::Pointer | Scale (const double xScale, const double yScale, const double zScale) |
| static AffineTransformType::Pointer | SimpleRotation (const double imageCenter[3]) |
| static AffineTransformType::Pointer | Translate (const double xoffset, const double yoffset, const double zoffset) |
| static void | WriteTransform (AffineTransformType::Pointer &MyTransform, const std::string &TransformFilename) |
| #define M_PI 3.1415926 |
| #define M_TWOPI ( 2.0 * M_PI ) |
| typedef itk::AffineTransform< double, 3 > AffineTransformType |
| typedef itk::LinearInterpolateImageFunction< ImageType, double > InterpolatorType |
References exit, j, keepOutputs(), LocalCompareImages(), PrependName(), Register(), Resample(), Scale(), SimpleRotation(), slicerget::size, Translate(), and WriteTransform().
Referenced by RegisterTests().
| double DEGREES | ( | double | x | ) | [inline] |
References M_PI.
Referenced by main(), and SimpleRotation().
| static bool keepOutputs | ( | false | ) | [static] |
Referenced by BRAINSFitTestDriver().
| static int LocalCompareImages | ( | const std::string & | imageAname, | |
| const std::string & | imageBname | |||
| ) | [static] |
References RegressionTestImage().
Referenced by BRAINSFitTestDriver().
| static const std::string PrependName | ( | const std::string & | name, | |
| const std::string & | prefix | |||
| ) | [static] |
Referenced by BRAINSFitTestDriver().
| static void Register | ( | const std::string & | registrationProgram, | |
| const std::string & | fixedVolumeName, | |||
| const std::string & | fixedBinaryVolumeName, | |||
| const std::string & | movingVolumeName, | |||
| const std::string & | movingBinaryVolumeName, | |||
| const std::string & | outputVolumeName, | |||
| const std::string & | outputTransformName, | |||
| const std::string & | transformType, | |||
| AffineTransformType::InputPointType & | CenterOfRotation, | |||
| AffineTransformType::OutputPointType & | TransformedCenter, | |||
| bool | OriginsProvided, | |||
| const std::string & | InitTransformName | |||
| ) | [static] |
| void RegisterTests | ( | ) |
References BRAINSFitTestDriver(), and REGISTER_TEST.
| static ImageType::Pointer Resample | ( | ImageType::Pointer & | inputImage, | |
| AffineTransformType::Pointer & | transform | |||
| ) | [static] |
Referenced by BRAINSFitTestDriver().
| static AffineTransformType::Pointer Scale | ( | const double | xScale, | |
| const double | yScale, | |||
| const double | zScale | |||
| ) | [static] |
Referenced by BRAINSFitTestDriver(), RectSource::DefineX(), NormalizeGroup(), and vtkSlicerBoxWidget2::vtkSlicerBoxWidget2().
| static AffineTransformType::Pointer SimpleRotation | ( | const double | imageCenter[3] | ) | [static] |
References DEGREES().
Referenced by BRAINSFitTestDriver().
| static AffineTransformType::Pointer Translate | ( | const double | xoffset, | |
| const double | yoffset, | |||
| const double | zoffset | |||
| ) | [static] |
Referenced by BRAINSFitTestDriver(), and vtkSlicerBoxWidget2::vtkSlicerBoxWidget2().
| static void WriteTransform | ( | AffineTransformType::Pointer & | MyTransform, | |
| const std::string & | TransformFilename | |||
| ) | [static] |
Referenced by BRAINSFitTestDriver().
1.6.1