18 #ifndef itkResampleImageFilter_h
19 #define itkResampleImageFilter_h
85 template<
typename TInputImage,
86 typename TOutputImage,
87 typename TInterpolatorPrecisionType = double,
88 typename TTransformPrecisionType = TInterpolatorPrecisionType>
113 itkStaticConstMacro(ImageDimension,
unsigned int,
114 TOutputImage::ImageDimension);
115 itkStaticConstMacro(InputImageDimension,
unsigned int,
116 TInputImage::ImageDimension);
125 typedef Transform< TTransformPrecisionType,
126 itkGetStaticConstMacro(ImageDimension),
222 itkSetMacro(DefaultPixelValue,
PixelType);
223 itkGetConstReferenceMacro(DefaultPixelValue,
PixelType);
228 virtual void SetOutputSpacing(
const double *values);
232 itkGetConstReferenceMacro(OutputSpacing,
SpacingType);
236 virtual void SetOutputOrigin(
const double *values);
248 void SetOutputParametersFromImage(
const ImageBaseType *image);
252 itkSetMacro(OutputStartIndex,
IndexType);
255 itkGetConstReferenceMacro(OutputStartIndex,
IndexType);
270 itkSetMacro(UseReferenceImage,
bool);
271 itkBooleanMacro(UseReferenceImage);
272 itkGetConstMacro(UseReferenceImage,
bool);
280 virtual void GenerateOutputInformation() ITK_OVERRIDE;
287 virtual
void GenerateInputRequestedRegion() ITK_OVERRIDE;
292 virtual
void BeforeThreadedGenerateData() ITK_OVERRIDE;
295 virtual
void AfterThreadedGenerateData() ITK_OVERRIDE;
300 #ifdef ITK_USE_CONCEPT_CHECKING
310 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
328 virtual void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
333 virtual void NonlinearThreadedGenerateData(
const OutputImageRegionType &
334 outputRegionForThread,
340 virtual void LinearThreadedGenerateData(
const OutputImageRegionType &
341 outputRegionForThread,
345 virtual PixelType CastPixelWithBoundsChecking(
const InterpolatorOutputType value,
346 const ComponentType minComponent,
347 const ComponentType maxComponent)
const;
369 #ifndef ITK_MANUAL_INSTANTIATION
370 #include "itkResampleImageFilter.hxx"
ImageBase< ImageDimension > ReferenceImageBaseType
TOutputImage::DirectionType DirectionType
TOutputImage::IndexType IndexType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
InterpolatorPointerType m_Interpolator
DecoratedTransformType::Pointer DecoratedTransformPointer
DefaultConvertPixelTraits< PixelType > PixelConvertType
ExtrapolateImageFunction< InputImageType, TInterpolatorPrecisionType > ExtrapolatorType
InterpolatorConvertType::ComponentType ComponentType
Size< itkGetStaticConstMacro(ImageDimension) > SizeType
Resample an image via a coordinate transform.
LinearInterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > LinearInterpolatorType
OriginPointType m_OutputOrigin
unsigned long ModifiedTimeType
InputImageType::RegionType InputImageRegionType
IndexType m_OutputStartIndex
Traits class used to by ConvertPixels to convert blocks of pixels.
PixelType::ComponentType ComponentType
SmartPointer< Self > Pointer
TOutputImage::RegionType OutputImageRegionType
ContinuousIndex< TTransformPrecisionType, ImageDimension > ContinuousInputIndexType
Base class for all process objects that output image data.
ExtrapolatorType::Pointer ExtrapolatorPointerType
InterpolatorType::Pointer InterpolatorPointerType
DirectionType m_OutputDirection
Transform< TTransformPrecisionType, itkGetStaticConstMacro(ImageDimension), itkGetStaticConstMacro(ImageDimension) > TransformType
ImageBaseType::DirectionType DirectionType
Superclass::OutputType OutputType
DataObjectDecorator< TransformType > DecoratedTransformType
ImageBase< itkGetStaticConstMacro(ImageDimension) > ImageBaseType
PixelConvertType::ComponentType PixelComponentType
SpacingType m_OutputSpacing
DefaultConvertPixelTraits< InterpolatorOutputType > InterpolatorConvertType
ImageBaseType::PointType PointType
LinearInterpolatorType::Pointer LinearInterpolatorPointerType
TInputImage InputImageType
TOutputImage OutputImageType
Decorates any subclass of itkObject with a DataObject API.
TInputImage InputImageType
TransformType::ConstPointer TransformPointerType
TOutputImage::SpacingType SpacingType
Linearly interpolate an image at specified positions.
unsigned int ThreadIdType
~ResampleImageFilter() override
SmartPointer< const Self > ConstPointer
Base class for all image interpolaters.
TOutputImage::PixelType PixelType
InputImageType::Pointer InputImagePointer
Base class for templated image classes.
A templated class holding a point in n-Dimensional image space.
InputImageType::ConstPointer InputImageConstPointer
InterpolatorType::PointType PointType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
ExtrapolatorPointerType m_Extrapolator
virtual void VerifyInputInformation() override
OutputImageType::Pointer OutputImagePointer
#define itkConceptMacro(name, concept)
A templated class holding a geometric point in n-Dimensional space.
TOutputImage::PointType OriginPointType
InterpolateImageFunction< InputImageType, TInterpolatorPrecisionType > InterpolatorType
TInputImage::PixelType InputPixelType
PixelType m_DefaultPixelValue
InterpolatorType::OutputType InterpolatorOutputType
ImageBaseType::IndexType IndexType