18#ifndef itkGradientMagnitudeImageFilter_h
19#define itkGradientMagnitudeImageFilter_h
41template <
typename TInputImage,
typename TOutputImage>
67 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
76 using typename Superclass::OutputImageRegionType;
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>));
148 bool m_UseImageSpacing{
true };
152#ifndef ITK_MANUAL_INSTANTIATION
153# include "itkGradientMagnitudeImageFilter.hxx"
Computes the gradient magnitude of an image region at each pixel.
typename NumericTraits< InputPixelType >::RealType RealType
GradientMagnitudeImageFilter()
typename TOutputImage::PixelType OutputPixelType
~GradientMagnitudeImageFilter() override=default
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void GenerateInputRequestedRegion() override
void PrintSelf(std::ostream &, Indent) const override
typename TInputImage::PixelType InputPixelType
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....