3 #include <itkImageBase.h> 4 #include <itkTransform.h> 5 #include <itkInterpolateImageFunction.h> 6 #include <itkSingleValuedCostFunction.h> 8 #include <itkSpatialObject.h> 12 template <
class TFixedImage,
class TMovingImage>
43 typedef itk::
Transform<CoordinateRepresentationType,
44 itkGetStaticConstMacro(MovingImageDimension),
45 itkGetStaticConstMacro(FixedImageDimension)>
55 typedef itk::InterpolateImageFunction<
63 typedef itk::SpatialObject< itkGetStaticConstMacro(FixedImageDimension) >
71 typedef itk::SpatialObject< itkGetStaticConstMacro(MovingImageDimension) >
88 itkSetConstObjectMacro( FixedImage, FixedImageType )
91 itkGetConstObjectMacro( FixedImage, FixedImageType )
94 itkSetConstObjectMacro( MovingImage, MovingImageType )
97 itkGetConstObjectMacro( MovingImage, MovingImageType )
106 itkSetObjectMacro( Interpolator, InterpolatorType )
109 itkGetConstObjectMacro( Interpolator, InterpolatorType )
112 itkGetConstReferenceMacro( NumberOfPixelsCounted,
unsigned long )
115 itkSetMacro( FixedImageRegion, FixedImageRegionType )
118 itkGetConstReferenceMacro( FixedImageRegion, FixedImageRegionType )
145 itkExceptionMacro(
"No derivatives implemented for tensor metrics...");
151 itkExceptionMacro(
"No derivatives implemented for tensor metrics...");
167 void PrintSelf(std::ostream& os, itk::Indent indent)
const ITK_OVERRIDE;
183 void operator=(
const Self&);
itk::SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > FixedImageMaskType
itk::SingleValuedCostFunction Superclass
TransformType::JacobianType TransformJacobianType
itk::SpatialObject< itkGetStaticConstMacro(MovingImageDimension) > MovingImageMaskType
static const unsigned int MovingImageDimension
FixedImageMaskType::ConstPointer FixedImageMaskConstPointer
MovingImageMaskConstPointer m_MovingImageMask
Superclass::DerivativeType DerivativeType
virtual ~BaseOrientedModelImageToImageMetric()
MovingImageMaskType::ConstPointer MovingImageMaskConstPointer
TransformType::InputPointType InputPointType
MovingImageMaskType::Pointer MovingImageMaskPointer
virtual void Initialize()
anima::MCMImage< TMovingImagePixelType, ImageDimension > ::PixelType MovingImagePixelType
InterpolatorPointer m_Interpolator
FixedImageConstPointer m_FixedImage
BaseOrientedModelImageToImageMetric()
FixedImageType::ConstPointer FixedImageConstPointer
vnl_matrix< double > m_OrientationMatrix
unsigned long m_NumberOfPixelsCounted
Superclass::MeasureType MeasureType
itk::SmartPointer< const Self > ConstPointer
itk::InterpolateImageFunction< MovingImageType, CoordinateRepresentationType > InterpolatorType
itk::SmartPointer< Self > Pointer
MovingImageType::ConstPointer MovingImageConstPointer
BaseOrientedModelImageToImageMetric Self
InterpolatorType::Pointer InterpolatorPointer
Superclass::ParametersValueType CoordinateRepresentationType
TransformType::OutputPointType OutputPointType
static const unsigned int FixedImageDimension
void PrintSelf(std::ostream &os, itk::Indent indent) const ITK_OVERRIDE
Superclass::ParametersType ParametersType
void GetDerivative(const ParametersType ¶meters, DerivativeType &derivative) const ITK_OVERRIDE
Should not be used.
FixedImageType::RegionType FixedImageRegionType
TransformType::ParametersType TransformParametersType
TransformPointer m_Transform
itk::Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedImageDimension)> TransformType
MovingImageConstPointer m_MovingImage
FixedImageMaskConstPointer m_FixedImageMask
unsigned int GetNumberOfParameters(void) const ITK_OVERRIDE
void SetTransformParameters(const ParametersType ¶meters) const
TransformType::Pointer TransformPointer
void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const ITK_OVERRIDE
FixedImageMaskType::Pointer FixedImageMaskPointer