00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkLaplacianImageFilter_h
00018 #define __itkLaplacianImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022
00023 namespace itk
00024 {
00051 template <class TInputImage, class TOutputImage>
00052 class ITK_EXPORT LaplacianImageFilter :
00053 public ImageToImageFilter< TInputImage, TOutputImage >
00054 {
00055 public:
00057 typedef LaplacianImageFilter Self;
00058 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00059
00062 typedef typename TOutputImage::PixelType OutputPixelType;
00063 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00064 typedef typename TInputImage::PixelType InputPixelType;
00065 typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00066 itkStaticConstMacro(ImageDimension, unsigned int,
00067 TOutputImage::ImageDimension);
00068
00070 typedef TInputImage InputImageType;
00071 typedef TOutputImage OutputImageType;
00072 typedef typename InputImageType::Pointer InputImagePointer;
00073
00075 typedef SmartPointer<Self> Pointer;
00076 typedef SmartPointer<const Self> ConstPointer;
00077
00079 itkTypeMacro(LaplacianImageFilter, ImageToImageFilter);
00080
00082 itkNewMacro(Self);
00083
00091 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00092
00095 void SetUseImageSpacingOn()
00096 { this->SetUseImageSpacing(true); }
00097
00100 void SetUseImageSpacingOff()
00101 { this->SetUseImageSpacing(false); }
00102
00105 itkSetMacro(UseImageSpacing, bool);
00106 itkGetMacro(UseImageSpacing, bool);
00107
00108
00109 protected:
00110 LaplacianImageFilter()
00111 {
00112 m_UseImageSpacing = true;
00113 }
00114 virtual ~LaplacianImageFilter() {}
00115
00121 void GenerateData();
00122 void PrintSelf(std::ostream&, Indent) const;
00123
00124 private:
00125 LaplacianImageFilter(const Self&);
00126 void operator=(const Self&);
00127 bool m_UseImageSpacing;
00128
00129 };
00130
00131 }
00132
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkLaplacianImageFilter.txx"
00135 #endif
00136
00137 #endif