18#ifndef itkResampleImageFilter_h
19#define itkResampleImageFilter_h
86template <
typename TInputImage,
87 typename TOutputImage,
88 typename TInterpolatorPrecisionType = double,
89 typename TTransformPrecisionType = TInterpolatorPrecisionType>
121#if !defined(ITK_LEGACY_REMOVE)
226 itkGetConstReferenceMacro(DefaultPixelValue,
PixelType);
277 itkSetMacro(UseReferenceImage,
bool);
278 itkBooleanMacro(UseReferenceImage);
279 itkGetConstMacro(UseReferenceImage,
bool);
352#if !defined(ITK_LEGACY_REMOVE)
363 template <
typename TComponent>
370 template <
typename TPixel>
393#ifndef ITK_MANUAL_INSTANTIATION
394# include "itkResampleImageFilter.hxx"
A templated class holding a point in n-Dimensional image space.
Decorates any subclass of itkObject with a DataObject API.
SmartPointer< Self > Pointer
Traits class used to by ConvertPixels to convert blocks of pixels.
typename InterpolatorOutputType::ComponentType ComponentType
Base class for templated image classes.
Control indentation during Print() invocation.
Base class for all image interpolators.
Point< TInterpolatorPrecisionType, Self::ImageDimension > PointType
SmartPointer< Self > Pointer
Linearly interpolate an image at specified positions.
SmartPointer< Self > Pointer
typename InputImageType::ConstPointer InputImageConstPointer
DefaultConvertPixelTraits< PixelType > PixelConvertType
ModifiedTimeType GetMTime() const override
DefaultConvertPixelTraits< InterpolatorOutputType > InterpolatorConvertType
typename InterpolatorType::OutputType InterpolatorOutputType
SmartPointer< Self > Pointer
PixelType m_DefaultPixelValue
typename DecoratedTransformType::Pointer DecoratedTransformPointer
virtual void NonlinearThreadedGenerateData(const OutputImageRegionType &outputRegionForThread)
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename LinearInterpolatorType::Pointer LinearInterpolatorPointerType
static constexpr unsigned int InputImageDimension
typename InterpolatorConvertType::ComponentType ComponentType
typename TOutputImage::PixelType PixelType
void SetOutputParametersFromImage(const ImageBaseType *image)
TOutputImage OutputImageType
static PixelType CastPixelWithBoundsChecking(const TPixel value)
void AfterThreadedGenerateData() override
typename InputImageType::RegionType InputImageRegionType
virtual void LinearThreadedGenerateData(const OutputImageRegionType &outputRegionForThread)
OriginPointType m_OutputOrigin
typename ExtrapolatorType::Pointer ExtrapolatorPointerType
static PixelType CastPixelWithBoundsChecking(const ComponentType value)
ImageBase< OutputImageDimension > ReferenceImageBaseType
void GenerateInputRequestedRegion() override
typename TOutputImage::PointType OutputPointType
SmartPointer< const Self > ConstPointer
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
itkGetInputMacro(ReferenceImage, ReferenceImageBaseType)
DirectionType m_OutputDirection
void BeforeThreadedGenerateData() override
typename TOutputImage::SpacingType SpacingType
static PixelComponentType CastComponentWithBoundsChecking(const TComponent value)
typename TOutputImage::RegionType OutputImageRegionType
ExtrapolatorPointerType m_Extrapolator
typename TOutputImage::DirectionType DirectionType
typename TOutputImage::PointType OriginPointType
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateOutputInformation() override
~ResampleImageFilter() override=default
typename InputImageType::Pointer InputImagePointer
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
IndexType m_OutputStartIndex
static constexpr unsigned int OutputImageDimension
virtual void SetOutputOrigin(const double *origin)
static PixelComponentType CastComponentWithBoundsChecking(const PixelComponentType value)
void InitializeTransform()
SpacingType m_OutputSpacing
DataObjectDecorator< TransformType > DecoratedTransformType
Transform< TTransformPrecisionType, Self::OutputImageDimension, Self::InputImageDimension > TransformType
typename PixelConvertType::ComponentType PixelComponentType
Size< Self::OutputImageDimension > SizeType
typename InterpolatorType::PointType InputPointType
typename OutputImageType::Pointer OutputImagePointer
typename TransformType::ConstPointer TransformPointerType
virtual void SetOutputSpacing(const double *spacing)
LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > LinearInterpolatorType
ExtrapolateImageFunction< InputImageType, TInterpolatorPrecisionType > ExtrapolatorType
InterpolatorPointerType m_Interpolator
void VerifyInputInformation() const override
TInputImage InputImageType
typename TOutputImage::IndexType IndexType
ContinuousIndex< TInterpolatorPrecisionType, InputImageDimension > ContinuousInputIndexType
ImageBase< Self::OutputImageDimension > ImageBaseType
typename TInputImage::PixelType InputPixelType
typename InterpolatorType::Pointer InterpolatorPointerType
InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > InterpolatorType
itkSetInputMacro(ReferenceImage, ReferenceImageBaseType)
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType
Represent a n-dimensional size (bounds) of a n-dimensional image.