18 #ifndef itkGradientImageFilter_h 19 #define itkGradientImageFilter_h 29 template <
typename TPixelType,
unsigned int VImageDimension >
class VectorImage;
54 template<
typename TInputImage,
55 typename TOperatorValueType = float,
56 typename TOutputValueType = float,
57 typename TOutputImageType = Image< CovariantVector< TOutputValueType,
58 TInputImage::ImageDimension >,
59 TInputImage::ImageDimension > >
66 TInputImage::ImageDimension);
68 TInputImage::ImageDimension);
119 itkSetMacro(UseImageSpacing,
bool);
120 itkGetConstMacro(UseImageSpacing,
bool);
123 #ifdef ITK_USE_CONCEPT_CHECKING 142 itkSetMacro(UseImageDirection,
bool);
143 itkGetConstMacro(UseImageDirection,
bool);
144 itkBooleanMacro(UseImageDirection);
167 void operator=(
const Self &) ITK_DELETE_FUNCTION;
173 template <
typename TValue>
179 it.GetImage()->TransformLocalVectorToPhysicalVector( gradient, physicalGradient );
188 template <
typename T >
194 it.
GetImage()->TransformLocalVectorToPhysicalVector( gradient, it.
Value() );
198 it.
Value() = gradient;
211 #ifndef ITK_MANUAL_INSTANTIATION 212 #include "itkGradientImageFilter.hxx"
InputImageType::Pointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const override
TOperatorValueType OperatorValueType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
void SetUseImageSpacingOn()
InputImageType::PixelType InputPixelType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Templated n-dimensional vector image class.
TOutputImageType OutputImageType
virtual void GenerateOutputInformation() override
virtual ~GradientImageFilter()
TInputImage InputImageType
OutputImageType::RegionType OutputImageRegionType
void operator=(const Self &) ITK_DELETE_FUNCTION
void SetOutputPixel(ImageRegionIterator< VectorImage< TValue, OutputImageDimension > > &it, CovariantVectorType &gradient)
OutputImageType::Pointer OutputImagePointer
SmartPointer< const Self > ConstPointer
void SetOutputPixel(ImageRegionIterator< T > &it, CovariantVectorType &gradient)
CovariantVector< OutputValueType, itkGetStaticConstMacro(OutputImageDimension) > CovariantVectorType
static const unsigned int OutputImageDimension
void SetUseImageSpacingOff()
SmartPointer< Self > Pointer
unsigned int ThreadIdType
virtual void SetUseImageSpacing(bool _arg)
OutputImageType::PixelType OutputPixelType
ImageToImageFilter< InputImageType, OutputImageType > Superclass
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
TOutputValueType OutputValueType
virtual void GenerateInputRequestedRegion() override
ValueType * GetDataPointer()
#define itkConceptMacro(name, concept)
static const unsigned int InputImageDimension
A templated class holding a n-Dimensional covariant vector.
A multi-dimensional iterator templated over image type that walks a region of pixels.
const ImageType * GetImage() const
Computes the gradient of an image using directional derivatives.