3 #include <itkFixedArray.h> 4 #include <itkTransform.h> 5 #include <itkImageFunction.h> 6 #include <itkImageRegionIterator.h> 7 #include <itkImageToImageFilter.h> 8 #include <itkInterpolateImageFunction.h> 9 #include <itkMatrixOffsetTransformBase.h> 15 template <
class TInputImage,
class TOutputImage,
class TInterpolatorPrecisionType=
double>
21 typedef itk::ImageToImageFilter<TInputImage,TOutputImage>
Superclass;
41 TOutputImage::ImageDimension);
43 TInputImage::ImageDimension);
51 typedef itk::MatrixOffsetTransformBase <TInterpolatorPrecisionType,
56 typedef itk::InterpolateImageFunction<InputImageType, TInterpolatorPrecisionType>
InterpolatorType;
60 typedef itk::Size<itkGetStaticConstMacro(ImageDimension)>
SizeType;
66 typedef typename InterpolatorType::PointType
PointType;
82 typedef itk::ImageBase<itkGetStaticConstMacro(ImageDimension)>
ImageBaseType;
102 itkSetObjectMacro(Interpolator, InterpolatorType)
105 itkGetConstObjectMacro(Interpolator, InterpolatorType)
108 itkSetMacro(Size, SizeType)
111 itkGetConstReferenceMacro(Size, SizeType)
115 itkSetMacro(DefaultPixelValue, PixelType)
118 itkGetConstReferenceMacro(DefaultPixelValue, PixelType)
121 itkSetMacro(OutputSpacing, SpacingType)
125 itkGetConstReferenceMacro(OutputSpacing, SpacingType)
128 itkSetMacro(OutputOrigin, OriginPointType)
132 itkGetConstReferenceMacro(OutputOrigin, OriginPointType)
135 itkSetMacro(OutputDirection, DirectionType)
136 itkGetConstReferenceMacro(OutputDirection, DirectionType)
143 itkSetMacro(OutputStartIndex, IndexType)
146 itkGetConstReferenceMacro(OutputStartIndex, IndexType)
157 itkSetMacro(UseReferenceImage,
bool)
158 itkBooleanMacro(UseReferenceImage)
159 itkGetConstMacro(UseReferenceImage,
bool)
184 itk::ModifiedTimeType
GetMTime() const ITK_OVERRIDE;
192 void PrintSelf(std::ostream& os, itk::Indent indent)
const ITK_OVERRIDE;
199 virtual itk::LightObject::Pointer
InternalClone()
const ITK_OVERRIDE;
205 TransformPointerType m_Transform;
206 InterpolatorPointerType m_Interpolator;
207 PixelType m_DefaultPixelValue;
208 SpacingType m_OutputSpacing;
209 OriginPointType m_OutputOrigin;
210 DirectionType m_OutputDirection;
211 IndexType m_OutputStartIndex;
212 bool m_UseReferenceImage;
214 bool m_ScaleIntensitiesWithJacobian;
215 bool m_LinearTransform;
static const unsigned int ImageDimension
InputImageType::ConstPointer InputImageConstPointer
TOutputImage::DirectionType DirectionType
InterpolatorType::PointType PointType
virtual void AfterThreadedGenerateData() ITK_OVERRIDE
itk::Size< itkGetStaticConstMacro(ImageDimension)> SizeType
InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
TOutputImage::PointType OriginPointType
itk::ImageBase< itkGetStaticConstMacro(ImageDimension)> ImageBaseType
double ComputeLinearJacobianValue()
const TOutputImage * GetReferenceImage() const
InterpolatorType::Pointer InterpolatorPointerType
InputImageType::RegionType InputImageRegionType
virtual void BeforeThreadedGenerateData() ITK_OVERRIDE
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) ITK_OVERRIDE
OutputImageType::Pointer OutputImagePointer
TInputImage InputImageType
virtual void SetOutputSpacing(SpacingType _arg)
itk::SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, itk::Indent indent) const ITK_OVERRIDE
TOutputImage::IndexType IndexType
virtual itk::LightObject::Pointer InternalClone() const ITK_OVERRIDE
virtual ~ResampleImageFilter()
TOutputImage::PixelType PixelType
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
TInputImage::PixelType InputPixelType
static const unsigned int InputImageDimension
TOutputImage::SpacingType SpacingType
TOutputImage::RegionType OutputImageRegionType
itk::InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > InterpolatorType
void SetScaleIntensitiesWithJacobian(bool scale)
void SetReferenceImage(const TOutputImage *image)
itk::MatrixOffsetTransformBase< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> MatrixTransformType
TransformType::ConstPointer TransformPointerType
itk::Transform< TInterpolatorPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension)> TransformType
virtual void GenerateOutputInformation() ITK_OVERRIDE
virtual void GenerateInputRequestedRegion() ITK_OVERRIDE
itk::SmartPointer< const Self > ConstPointer
void SetTransform(TransformType *transform)
itk::ModifiedTimeType GetMTime() const ITK_OVERRIDE
double ComputeLocalJacobianValue(const InputIndexType &index)
InputImageType::IndexType InputIndexType
void SetOutputParametersFromImage(const ImageBaseType *image)
virtual void SetOutputOrigin(OriginPointType _arg)