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);
121 itkSetMacro(UseImageSpacing,
bool);
122 itkGetConstMacro(UseImageSpacing,
bool);
125 #ifdef ITK_USE_CONCEPT_CHECKING
144 itkSetMacro(UseImageDirection,
bool);
145 itkGetConstMacro(UseImageDirection,
bool);
146 itkBooleanMacro(UseImageDirection);
175 template <typename TValue>
181 it.GetImage()->TransformLocalVectorToPhysicalVector( gradient, physicalGradient );
190 template <
typename T >
196 it.
GetImage()->TransformLocalVectorToPhysicalVector( gradient, it.
Value() );
200 it.
Value() = gradient;
213 #ifndef ITK_MANUAL_INSTANTIATION
214 #include "itkGradientImageFilter.hxx"
Light weight base class for most itk classes.
InputImageType::Pointer InputImagePointer
TOperatorValueType OperatorValueType
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
void SetUseImageSpacingOn()
InputImageType::PixelType InputPixelType
Templated n-dimensional vector image class.
void PrintSelf(std::ostream &os, Indent indent) const override
TOutputImageType OutputImageType
virtual void GenerateOutputInformation() override
virtual ~GradientImageFilter()
TInputImage InputImageType
OutputImageType::RegionType OutputImageRegionType
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
void operator=(const Self &)
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.