18 #ifndef itkResampleImageFilter_h
19 #define itkResampleImageFilter_h
86 template <
typename TInputImage,
87 typename TOutputImage,
88 typename TInterpolatorPrecisionType = double,
89 typename TTransformPrecisionType = TInterpolatorPrecisionType>
116 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
119 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
121 #if !defined(ITK_LEGACY_REMOVE)
122 static constexpr
unsigned int ImageDimension = OutputImageDimension;
189 VerifyPreconditions() ITKv5_CONST override;
225 itkSetMacro(DefaultPixelValue,
PixelType);
226 itkGetConstReferenceMacro(DefaultPixelValue,
PixelType);
232 SetOutputSpacing(const
double * spacing);
236 itkGetConstReferenceMacro(OutputSpacing,
SpacingType);
241 SetOutputOrigin(const
double * origin);
258 itkSetMacro(OutputStartIndex,
IndexType);
261 itkGetConstReferenceMacro(OutputStartIndex,
IndexType);
277 itkSetMacro(UseReferenceImage,
bool);
278 itkBooleanMacro(UseReferenceImage);
279 itkGetConstMacro(UseReferenceImage,
bool);
282 #ifdef ITK_USE_CONCEPT_CHECKING
292 PrintSelf(std::ostream & os,
Indent indent)
const override;
309 GenerateOutputInformation()
override;
317 GenerateInputRequestedRegion()
override;
323 BeforeThreadedGenerateData()
override;
327 AfterThreadedGenerateData()
override;
331 GetMTime()
const override;
343 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
349 NonlinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread);
354 LinearThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread);
357 itkLegacyMacro(
virtual PixelType CastPixelWithBoundsChecking(
const InterpolatorOutputType value,
358 const ComponentType minComponent,
359 const ComponentType maxComponent)
const);
362 static PixelComponentType
363 CastComponentWithBoundsChecking(
const PixelComponentType value);
365 template <
typename TComponent>
366 static PixelComponentType
367 CastComponentWithBoundsChecking(
const TComponent value);
370 CastPixelWithBoundsChecking(
const ComponentType value);
372 template <
typename TPixel>
374 CastPixelWithBoundsChecking(
const TPixel value);
377 InitializeTransform();
391 bool m_UseReferenceImage{
false };
395 #ifndef ITK_MANUAL_INSTANTIATION
396 # include "itkResampleImageFilter.hxx"