BRAINSFitTestDriver.cxx File Reference

#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 &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)
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 Documentation

#define M_PI   3.1415926
#define M_TWOPI   ( 2.0 * M_PI )

Typedef Documentation

typedef itk::AffineTransform< double, 3 > AffineTransformType
typedef itk::Image< unsigned char, 3 > ImageType
typedef itk::LinearInterpolateImageFunction< ImageType, double > InterpolatorType

Function Documentation

int BRAINSFitTestDriver ( int  argc,
char **  argv 
)
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 (  ) 
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]
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]
static void WriteTransform ( AffineTransformType::Pointer &  MyTransform,
const std::string &  TransformFilename 
) [static]

Referenced by BRAINSFitTestDriver().


Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1