18 #ifndef itkResampleImageFilter_h
19 #define itkResampleImageFilter_h
85 template<
typename TInputImage,
86 typename TOutputImage,
87 typename TInterpolatorPrecisionType = double,
88 typename TTransformPrecisionType = TInterpolatorPrecisionType>
115 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
116 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
125 Self::ImageDimension,
126 Self::ImageDimension >;
134 TInterpolatorPrecisionType >;
144 TInterpolatorPrecisionType >;
149 TInterpolatorPrecisionType >;
219 itkSetMacro(DefaultPixelValue,
PixelType);
220 itkGetConstReferenceMacro(DefaultPixelValue,
PixelType);
225 virtual void SetOutputSpacing(
const double *values);
229 itkGetConstReferenceMacro(OutputSpacing,
SpacingType);
233 virtual void SetOutputOrigin(
const double *values);
245 void SetOutputParametersFromImage(
const ImageBaseType *image);
249 itkSetMacro(OutputStartIndex,
IndexType);
252 itkGetConstReferenceMacro(OutputStartIndex,
IndexType);
267 itkSetMacro(UseReferenceImage,
bool);
268 itkBooleanMacro(UseReferenceImage);
269 itkGetConstMacro(UseReferenceImage,
bool);
272 #ifdef ITK_USE_CONCEPT_CHECKING
282 void PrintSelf(std::ostream & os,
Indent indent)
const override;
296 void GenerateOutputInformation()
override;
303 void GenerateInputRequestedRegion()
override;
308 void BeforeThreadedGenerateData()
override;
311 void AfterThreadedGenerateData()
override;
325 void DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
330 virtual void NonlinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread);
334 virtual void LinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread);
338 virtual PixelType CastPixelWithBoundsChecking(
const InterpolatorOutputType value,
339 const ComponentType minComponent,
340 const ComponentType maxComponent)
const);
343 static PixelComponentType CastComponentWithBoundsChecking(
const PixelComponentType value);
345 template <
typename TComponent>
346 static PixelComponentType CastComponentWithBoundsChecking(
const TComponent value);
348 static PixelType CastPixelWithBoundsChecking(
const ComponentType value);
350 template <
typename TPixel>
351 static PixelType CastPixelWithBoundsChecking(
const TPixel value);
365 bool m_UseReferenceImage{
false };
370 #ifndef ITK_MANUAL_INSTANTIATION
371 #include "itkResampleImageFilter.hxx"
typename OutputImageType::Pointer OutputImagePointer
typename TransformType::ConstPointer TransformPointerType
InterpolatorPointerType m_Interpolator
typename TOutputImage::IndexType IndexType
Resample an image via a coordinate transform.
OriginPointType m_OutputOrigin
typename Superclass::OutputType OutputType
IndexType m_OutputStartIndex
Traits class used to by ConvertPixels to convert blocks of pixels.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename InterpolatorType::PointType PointType
Base class for all process objects that output image data.
typename DecoratedTransformType::Pointer DecoratedTransformPointer
typename TOutputImage::PixelType PixelType
typename InterpolatorType::Pointer InterpolatorPointerType
TInputImage InputImageType
DirectionType m_OutputDirection
typename PixelConvertType::ComponentType PixelComponentType
typename InputImageType::Pointer InputImagePointer
SpacingType m_OutputSpacing
ImageBaseType::DirectionType DirectionType
typename TOutputImage::PointType OriginPointType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
Decorates any subclass of itkObject with a DataObject API.
void VerifyInputInformation() ITKv5_CONST override
unsigned long ModifiedTimeType
Linearly interpolate an image at specified positions.
Base class for all image interpolaters.
typename InputImageType::RegionType InputImageRegionType
Base class for templated image classes.
A templated class holding a point in n-Dimensional image space.
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
ImageBaseType::PointType PointType
ExtrapolatorPointerType m_Extrapolator
typename TOutputImage::SpacingType SpacingType
typename PixelType::ComponentType ComponentType
typename InterpolatorType::OutputType InterpolatorOutputType
typename TOutputImage::DirectionType DirectionType
typename InterpolatorConvertType::ComponentType ComponentType
typename TInputImage::PixelType InputPixelType
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
typename ExtrapolatorType::Pointer ExtrapolatorPointerType
typename InputImageType::ConstPointer InputImageConstPointer
PixelType m_DefaultPixelValue
typename LinearInterpolatorType::Pointer LinearInterpolatorPointerType