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...
An image region represents a structured region of data.
const SizeType & GetSize() const
Templated n-dimensional image class.
Light weight base class for most itk classes.
Base class for most ITK classes.
ObjectType * GetPointer() const noexcept
const ParametersType & GetActualParameters() const
FixedImageType::Pointer m_FixedImage
ParametersType m_Parameters
OptimizerParameters< double > ParametersType
itk::Image< TFixedPixelType, VDimension > FixedImageType
MovingImageType::Pointer m_MovingImage
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....