18#ifndef itkImageRegistrationMethodImageSource_h
19#define itkImageRegistrationMethodImageSource_h
40template <
typename TFixedPixelType,
typename TMovingPixelType,
unsigned int VDimension>
97 center[0] =
static_cast<double>(region.
GetSize()[0]) / 2.0;
98 center[1] =
static_cast<double>(region.
GetSize()[1]) / 2.0;
100 const double s =
static_cast<double>(region.
GetSize()[0]) / 2.0;
113 while (!ri.IsAtEnd())
115 p[0] = ri.GetIndex()[0];
116 p[1] = ri.GetIndex()[1];
119 const double x = d[0];
120 const double y = d[1];
121 const double value = 200.0 * std::exp(-(x * x + y * y) / (s * s));
127 while (!ti.IsAtEnd())
129 p[0] = ti.GetIndex()[0];
130 p[1] = ti.GetIndex()[1];
132 const double x = d[0];
133 const double y = d[1];
134 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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....