18 #ifndef itkTwoImageToOneImageMetric_h 19 #define itkTwoImageToOneImageMetric_h 52 template <
typename TFixedImage,
typename TMovingImage>
80 TMovingImage::ImageDimension);
82 TFixedImage::ImageDimension);
139 itkSetConstObjectMacro( FixedImage1, FixedImageType );
142 itkSetConstObjectMacro( FixedImage2, FixedImageType );
145 itkGetConstObjectMacro( FixedImage1, FixedImageType );
148 itkGetConstObjectMacro( FixedImage2, FixedImageType );
151 itkSetConstObjectMacro( MovingImage, MovingImageType );
154 itkGetConstObjectMacro( MovingImage, MovingImageType );
163 itkSetObjectMacro( Interpolator1, InterpolatorType );
166 itkSetObjectMacro( Interpolator2, InterpolatorType );
169 itkGetConstObjectMacro( Interpolator1, InterpolatorType );
172 itkGetConstObjectMacro( Interpolator2, InterpolatorType );
175 itkGetConstReferenceMacro( NumberOfPixelsCounted,
unsigned long );
178 itkSetMacro( FixedImageRegion1, FixedImageRegionType );
181 itkSetMacro( FixedImageRegion2, FixedImageRegionType );
184 itkGetConstReferenceMacro( FixedImageRegion1, FixedImageRegionType );
187 itkGetConstReferenceMacro( FixedImageRegion2, FixedImageRegionType );
202 itkSetMacro( ComputeGradient,
bool);
203 itkGetConstReferenceMacro( ComputeGradient,
bool);
204 itkBooleanMacro(ComputeGradient);
255 #ifndef ITK_MANUAL_INSTANTIATION 256 #include "itkTwoImageToOneImageMetric.hxx"
This class is a base for the CostFunctions returning a single value.
NumericTraits< MovingImagePixelType >::RealType RealType
MovingImageMaskPointer m_MovingImageMask
Computes similarity between two fixed images and one fixed image.
TransformType::OutputPointType OutputPointType
Superclass::MeasureType MeasureType
FixedImageMaskPointer m_FixedImageMask2
GradientImageFilterType::Pointer GradientImageFilterPointer
TransformPointer m_Transform
FixedImageMaskPointer m_FixedImageMask1
static const unsigned int MovingImageDimension
SingleValuedCostFunction Superclass
TransformType::ParametersType TransformParametersType
Superclass::ParametersType ParametersType
unsigned int GetNumberOfParameters() const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
TwoImageToOneImageMetric Self
MovingImageMaskType::Pointer MovingImageMaskPointer
TransformType::Pointer TransformPointer
Computes the gradient of an image by convolution with the first derivative of a Gaussian.
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension)> GradientPixelType
SmartPointer< Self > Pointer
Image< GradientPixelType, itkGetStaticConstMacro(MovingImageDimension)> GradientImageType
void operator=(const Self &)
TwoImageToOneImageMetric()
virtual ~TwoImageToOneImageMetric()
SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > FixedImageMaskType
InterpolateImageFunction< MovingImageType, CoordinateRepresentationType > InterpolatorType
TransformType::InputPointType InputPointType
FixedImageMaskType::Pointer FixedImageMaskPointer
virtual void Initialize()
Array< ParametersValueType > DerivativeType
Array2D class representing a 2D array with size defined at construction time.
FixedImageRegionType m_FixedImageRegion2
void SetTransformParameters(const ParametersType ¶meters) const
MovingImageType::ConstPointer MovingImageConstPointer
Class to hold and manage different parameter types used during optimization.
MovingImageConstPointer m_MovingImage
FixedImageType::ConstPointer FixedImageConstPointer
Implementation of the composite pattern.
FixedImageRegionType m_FixedImageRegion1
TMovingImage MovingImageType
SpatialObject< itkGetStaticConstMacro(MovingImageDimension) > MovingImageMaskType
virtual void PrintSelf(std::ostream &os, Indent indent) const
InterpolatorType::Pointer InterpolatorPointer
FixedImageConstPointer m_FixedImage2
TransformType::JacobianType TransformJacobianType
Superclass::ParametersType ParametersType
TFixedImage FixedImageType
Base class for all image interpolaters.
Superclass::DerivativeType DerivativeType
Superclass::ParametersValueType ParametersValueType
Superclass::ParametersValueType CoordinateRepresentationType
SmartPointer< GradientImageType > GradientImagePointer
GradientImagePointer m_GradientImage
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedImageDimension)> TransformType
unsigned long m_NumberOfPixelsCounted
Control indentation during Print() invocation.
FixedImageType::RegionType FixedImageRegionType
GradientRecursiveGaussianImageFilter< MovingImageType, GradientImageType > GradientImageFilterType
SmartPointer< const Self > ConstPointer
InterpolatorPointer m_Interpolator1
InterpolatorPointer m_Interpolator2
A templated class holding a geometric point in n-Dimensional space.
A templated class holding a n-Dimensional covariant vector.
FixedImageConstPointer m_FixedImage1
static const unsigned int FixedImageDimension
TMovingImage::PixelType MovingImagePixelType
Templated n-dimensional image class.