18 #ifndef itkGradientMagnitudeImageFilter_h
19 #define itkGradientMagnitudeImageFilter_h
41 template <
typename TInputImage,
typename TOutputImage>
67 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
76 using typename Superclass::OutputImageRegionType;
87 GenerateInputRequestedRegion()
override;
93 itkSetMacro(UseImageSpacing,
bool);
94 itkGetConstMacro(UseImageSpacing,
bool);
95 itkBooleanMacro(UseImageSpacing);
98 #if !defined(ITK_FUTURE_LEGACY_REMOVE)
103 SetUseImageSpacingOn()
105 this->SetUseImageSpacing(
true);
112 SetUseImageSpacingOff()
114 this->SetUseImageSpacing(
false);
118 #ifdef ITK_USE_CONCEPT_CHECKING
120 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<InputPixelType>));
125 GradientMagnitudeImageFilter();
127 ~GradientMagnitudeImageFilter()
override =
default;
141 DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
145 PrintSelf(std::ostream &, Indent)
const override;
148 bool m_UseImageSpacing{
true };
152 #ifndef ITK_MANUAL_INSTANTIATION
153 # include "itkGradientMagnitudeImageFilter.hxx"