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:
00056
00058 typedef LaplacianImageFilter Self;
00059 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00060
00063 typedef typename TOutputImage::PixelType OutputPixelType;
00064 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00065 typedef typename TInputImage::PixelType InputPixelType;
00066 typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00067 itkStaticConstMacro(InputImageDimension, unsigned int,
00068 TInputImage::ImageDimension);
00069 itkStaticConstMacro(ImageDimension, unsigned int,
00070 TOutputImage::ImageDimension);
00072
00074 typedef TInputImage InputImageType;
00075 typedef TOutputImage OutputImageType;
00076 typedef typename InputImageType::Pointer InputImagePointer;
00077
00079 typedef SmartPointer<Self> Pointer;
00080 typedef SmartPointer<const Self> ConstPointer;
00081
00083 itkTypeMacro(LaplacianImageFilter, ImageToImageFilter);
00084
00086 itkNewMacro(Self);
00087
00095 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00096
00099 void SetUseImageSpacingOn()
00100 { this->SetUseImageSpacing(true); }
00101
00104 void SetUseImageSpacingOff()
00105 { this->SetUseImageSpacing(false); }
00106
00109 itkSetMacro(UseImageSpacing, bool);
00110 itkGetMacro(UseImageSpacing, bool);
00112
00113 #ifdef ITK_USE_CONCEPT_CHECKING
00114
00115 itkConceptMacro(SameDimensionCheck,
00116 (Concept::SameDimension<InputImageDimension, ImageDimension>));
00117
00119 #endif
00120
00121 protected:
00122 LaplacianImageFilter()
00123 {
00124 m_UseImageSpacing = true;
00125 }
00126 virtual ~LaplacianImageFilter() {}
00127
00133 void GenerateData();
00134 void PrintSelf(std::ostream&, Indent) const;
00136
00137 private:
00138 LaplacianImageFilter(const Self&);
00139 void operator=(const Self&);
00140 bool m_UseImageSpacing;
00141
00142 };
00143
00144 }
00145
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkLaplacianImageFilter.txx"
00148 #endif
00149
00150 #endif
00151