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 {
00058 template <class TInputImage, class TOutputImage>
00059 class ITK_EXPORT LaplacianImageFilter :
00060 public ImageToImageFilter< TInputImage, TOutputImage >
00061 {
00062 public:
00063
00065 typedef LaplacianImageFilter Self;
00066 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00067
00070 typedef typename TOutputImage::PixelType OutputPixelType;
00071 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00072 typedef typename TInputImage::PixelType InputPixelType;
00073 typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00074 itkStaticConstMacro(InputImageDimension, unsigned int,
00075 TInputImage::ImageDimension);
00076 itkStaticConstMacro(ImageDimension, unsigned int,
00077 TOutputImage::ImageDimension);
00079
00081 typedef TInputImage InputImageType;
00082 typedef TOutputImage OutputImageType;
00083 typedef typename InputImageType::Pointer InputImagePointer;
00084
00086 typedef SmartPointer<Self> Pointer;
00087 typedef SmartPointer<const Self> ConstPointer;
00088
00090 itkTypeMacro(LaplacianImageFilter, ImageToImageFilter);
00091
00093 itkNewMacro(Self);
00094
00102 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00103
00106 void SetUseImageSpacingOn()
00107 { this->SetUseImageSpacing(true); }
00108
00111 void SetUseImageSpacingOff()
00112 { this->SetUseImageSpacing(false); }
00113
00116 itkSetMacro(UseImageSpacing, bool);
00117 itkGetConstMacro(UseImageSpacing, bool);
00119
00120 #ifdef ITK_USE_CONCEPT_CHECKING
00121
00122 itkConceptMacro(SameDimensionCheck,
00123 (Concept::SameDimension<InputImageDimension, ImageDimension>));
00124 itkConceptMacro(InputPixelTypeIsFloatingPointCheck,
00125 (Concept::IsFloatingPoint<InputPixelType>));
00126 itkConceptMacro(OutputPixelTypeIsFloatingPointCheck,
00127 (Concept::IsFloatingPoint<OutputPixelType>));
00128
00130 #endif
00131
00132 protected:
00133 LaplacianImageFilter()
00134 {
00135 m_UseImageSpacing = true;
00136 }
00137 virtual ~LaplacianImageFilter() {}
00138
00144 void GenerateData();
00145 void PrintSelf(std::ostream&, Indent) const;
00147
00148 private:
00149 LaplacianImageFilter(const Self&);
00150 void operator=(const Self&);
00151 bool m_UseImageSpacing;
00152
00153 };
00154
00155 }
00156
00157 #ifndef ITK_MANUAL_INSTANTIATION
00158 #include "itkLaplacianImageFilter.txx"
00159 #endif
00160
00161 #endif
00162