18 #ifndef itkWarpImageFilter_h
19 #define itkWarpImageFilter_h
85 typename TOutputImage,
86 typename TDisplacementField
115 typedef typename OutputImageType::SizeType
SizeType;
121 TOutputImage::ImageDimension);
123 TInputImage::ImageDimension);
125 TDisplacementField::ImageDimension);
135 #ifdef ITKV3_COMPATIBILITY
136 typedef TDisplacementField DeformationFieldType;
137 typedef typename DeformationFieldType::Pointer DeformationFieldPointer;
138 typedef typename DeformationFieldType::PixelType DeformationType;
160 #ifdef ITKV3_COMPATIBILITY
165 DeformationFieldType * GetDeformationField(
void)
182 itkGetConstReferenceMacro(OutputSpacing,
SpacingType);
190 itkGetConstReferenceMacro(OutputOrigin,
PointType);
202 itkSetMacro(OutputStartIndex,
IndexType);
205 itkGetConstReferenceMacro(OutputStartIndex,
IndexType);
211 itkGetConstReferenceMacro(OutputSize,
SizeType);
214 itkSetMacro(EdgePaddingValue,
PixelType);
217 itkGetConstMacro(EdgePaddingValue,
PixelType);
242 #ifdef ITK_USE_CONCEPT_CHECKING
245 ( Concept::SameDimension< ImageDimension, InputImageDimension > ) );
247 ( Concept::SameDimension< ImageDimension, DisplacementFieldDimension > ) );
249 ( Concept::HasNumericTraits< typename TInputImage::PixelType > ) );
251 ( Concept::HasNumericTraits< typename TDisplacementField::PixelType::ValueType > ) );
259 void PrintSelf(std::ostream & os, Indent indent)
const ITK_OVERRIDE;
286 void operator=(const Self &);
300 #ifndef ITK_MANUAL_INSTANTIATION
301 #include "itkWarpImageFilter.hxx"
IndexType m_OutputStartIndex
Superclass::InputImageType InputImageType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
InputImageType::ConstPointer InputImageConstPointer
TDisplacementField DisplacementFieldType
InterpolatorPointer m_Interpolator
InputImageType::Pointer InputImagePointer
OutputImageType::SizeType SizeType
signed long IndexValueType
void EvaluateDisplacementAtPhysicalPoint(const PointType &p, DisplacementType &output)
InterpolateImageFunction< InputImageType, CoordRepType > InterpolatorType
virtual void AfterThreadedGenerateData() override
SmartPointer< const Self > ConstPointer
TOutputImage::RegionType OutputImageRegionType
OutputImageType::IndexType IndexType
Base class for all process objects that output image data.
SmartPointer< Self > Pointer
ImageBase< itkGetStaticConstMacro(ImageDimension) > ImageBaseType
Superclass::InputImagePointer InputImagePointer
DisplacementFieldType::PixelType DisplacementType
DirectionType m_OutputDirection
OutputImageType::PixelType PixelType
DisplacementFieldType * GetDisplacementField()
TOutputImage::DirectionType DirectionType
OutputImageType::Pointer OutputImagePointer
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
OutputImageType::IndexValueType IndexValueType
virtual void VerifyInputInformation() override
OutputImageType::SpacingType SpacingType
bool m_DefFieldSameInformation
virtual void GenerateOutputInformation() override
TInputImage InputImageType
PixelType m_EdgePaddingValue
Warps an image using an input displacement field.
DisplacementFieldType::Pointer DisplacementFieldPointer
Linearly interpolate an image at specified positions.
unsigned int ThreadIdType
Point< CoordRepType, itkGetStaticConstMacro(ImageDimension) > PointType
static const unsigned int InputImageDimension
Base class for all image interpolaters.
Base class for templated image classes.
InterpolatorType::Pointer InterpolatorPointer
void PrintSelf(std::ostream &os, Indent indent) const override
void SetOutputParametersFromImage(const ImageBaseType *image)
Superclass::OutputImagePointer OutputImagePointer
virtual void BeforeThreadedGenerateData() override
LinearInterpolateImageFunction< InputImageType, CoordRepType > DefaultInterpolatorType
Base class for filters that take an image as input and produce an image as output.
static const unsigned int DisplacementFieldDimension
static const unsigned int ImageDimension
virtual void SetOutputOrigin(PointType _arg)
SpacingType m_OutputSpacing
virtual void GenerateInputRequestedRegion() override
TOutputImage OutputImageType
void SetDisplacementField(const DisplacementFieldType *field)
Superclass::OutputImageType OutputImageType
#define itkConceptMacro(name, concept)
Superclass::InputImageConstPointer InputImageConstPointer
virtual void SetOutputSpacing(SpacingType _arg)