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"
virtual void GenerateInputRequestedRegion()
Light weight base class for most itk classes.
InputImageType::Pointer InputImagePointer
TOperatorValueType OperatorValueType
void SetUseImageSpacingOn()
InputImageType::PixelType InputPixelType
Templated n-dimensional vector image class.
TOutputImageType OutputImageType
virtual ~GradientImageFilter()
virtual void GenerateOutputInformation()
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
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 PrintSelf(std::ostream &os, Indent indent) const
void SetUseImageSpacingOff()
SmartPointer< Self > Pointer
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
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
unsigned int ThreadIdType
Computes the gradient of an image using directional derivatives.