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()
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);
356 #if !defined(ITK_LEGACY_REMOVE)
358 itkLegacyMacro(
virtual PixelType CastPixelWithBoundsChecking(
const InterpolatorOutputType value,
359 const ComponentType minComponent,
360 const ComponentType maxComponent)
const;)
364 static PixelComponentType
365 CastComponentWithBoundsChecking(
const PixelComponentType value);
367 template <
typename TComponent>
368 static PixelComponentType
369 CastComponentWithBoundsChecking(
const TComponent value);
372 CastPixelWithBoundsChecking(
const ComponentType value);
374 template <
typename TPixel>
376 CastPixelWithBoundsChecking(
const TPixel value);
379 InitializeTransform();
393 bool m_UseReferenceImage{
false };
397 #ifndef ITK_MANUAL_INSTANTIATION
398 # include "itkResampleImageFilter.hxx"