00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkDerivativeImageFilter_h
00018 #define __itkDerivativeImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022
00023 namespace itk
00024 {
00037 template <class TInputImage, class TOutputImage>
00038 class ITK_EXPORT DerivativeImageFilter :
00039 public ImageToImageFilter< TInputImage, TOutputImage >
00040 {
00041 public:
00043 typedef DerivativeImageFilter Self;
00044 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00045 typedef SmartPointer<Self> Pointer;
00046 typedef SmartPointer<const Self> ConstPointer;
00047
00050 typedef typename TOutputImage::PixelType OutputPixelType;
00051 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00052 typedef typename TInputImage::PixelType InputPixelType;
00053 typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00054
00057 itkStaticConstMacro(ImageDimension, unsigned int,
00058 TOutputImage::ImageDimension);
00059
00061 typedef TInputImage InputImageType;
00062 typedef TOutputImage OutputImageType;
00063
00065 itkNewMacro(Self);
00066
00068 itkTypeMacro(DerivativeImageFilter, ImageToImageFilter);
00069
00071 itkSetMacro(Order, unsigned int);
00072 itkGetMacro(Order, unsigned int);
00073 itkSetMacro(Direction, unsigned int);
00074 itkGetMacro(Direction, unsigned int);
00075
00083 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00084
00085 protected:
00086 DerivativeImageFilter() {m_Order = 0; m_Direction = 0;}
00087 virtual ~DerivativeImageFilter() {}
00088 void PrintSelf(std::ostream& os, Indent indent) const;
00089
00095 void GenerateData();
00096
00097 private:
00098 DerivativeImageFilter(const Self&);
00099 void operator=(const Self&);
00100
00102 unsigned int m_Order;
00103
00105 unsigned int m_Direction;
00106
00107 };
00108
00109 }
00110
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkDerivativeImageFilter.txx"
00113 #endif
00114
00115 #endif