18#ifndef itkImageRegistrationMethodImageSource_h
19#define itkImageRegistrationMethodImageSource_h
38template <
typename TFixedPixelType,
typename TMovingPixelType,
unsigned int VDimension>
95 center[0] =
static_cast<double>(region.
GetSize()[0]) / 2.0;
96 center[1] =
static_cast<double>(region.
GetSize()[1]) / 2.0;
98 const double s =
static_cast<double>(region.
GetSize()[0]) / 2.0;
111 while (!ri.IsAtEnd())
113 p[0] = ri.GetIndex()[0];
114 p[1] = ri.GetIndex()[1];
117 const double x = d[0];
118 const double y = d[1];
119 const double value = 200.0 * std::exp(-(x * x + y * y) / (s * s));
125 while (!ti.IsAtEnd())
127 p[0] = ti.GetIndex()[0];
128 p[1] = ti.GetIndex()[1];
130 const double x = d[0];
131 const double y = d[1];
132 const double value = 200.0 * std::exp(-(x * x + y * y) / (s * s));
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
const SizeType & GetSize() const
Templated n-dimensional image class.
Size< VImageDimension > SizeType
ImageRegion< VImageDimension > RegionType
TMovingPixelType PixelType
SmartPointer< Self > Pointer
Base class for most ITK classes.
Class to hold and manage different parameter types used during optimization.
A templated class holding a geometric point in n-Dimensional space.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
const ParametersType & GetActualParameters() const
FixedImageType::Pointer m_FixedImage
ParametersType m_Parameters
OptimizerParameters< double > ParametersType
itk::Image< TFixedPixelType, VDimension > FixedImageType
MovingImageType::Pointer m_MovingImage
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageRegistrationMethodImageSource Self
itk::Image< TMovingPixelType, VDimension > MovingImageType
const FixedImageType * GetFixedImage() const
ImageRegistrationMethodImageSource()
void GenerateImages(const typename MovingImageType::SizeType &size)
const MovingImageType * GetMovingImage() const