00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkLaplacianSharpeningImageFilter_h
00018 #define __itkLaplacianSharpeningImageFilter_h
00019
00020 #include "itkNumericTraits.h"
00021 #include "itkImageToImageFilter.h"
00022 #include "itkImage.h"
00023
00024 namespace itk
00025 {
00047 template <class TInputImage, class TOutputImage>
00048 class ITK_EXPORT LaplacianSharpeningImageFilter :
00049 public ImageToImageFilter< TInputImage, TOutputImage >
00050 {
00051 public:
00053 typedef LaplacianSharpeningImageFilter Self;
00054 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00055
00058 typedef typename TOutputImage::PixelType OutputPixelType;
00059 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00060 typedef typename NumericTraits<OutputPixelType>::RealType RealType;
00061 typedef typename TInputImage::PixelType InputPixelType;
00062 typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00063 itkStaticConstMacro(ImageDimension, unsigned int,
00064 TOutputImage::ImageDimension);
00065
00067 typedef TInputImage InputImageType;
00068 typedef TOutputImage OutputImageType;
00069 typedef typename InputImageType::Pointer InputImagePointer;
00070
00072 typedef SmartPointer<Self> Pointer;
00073 typedef SmartPointer<const Self> ConstPointer;
00074
00076 itkTypeMacro(LaplacianSharpeningImageFilter, ImageToImageFilter);
00077
00079 itkNewMacro(Self);
00080
00089 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00090
00093 void SetUseImageSpacingOn()
00094 { this->SetUseImageSpacing(true); }
00095
00098 void SetUseImageSpacingOff()
00099 { this->SetUseImageSpacing(false); }
00100
00103 itkSetMacro(UseImageSpacing, bool);
00104 itkGetMacro(UseImageSpacing, bool);
00105
00106
00107 protected:
00108 LaplacianSharpeningImageFilter()
00109 {
00110 m_UseImageSpacing = true;
00111 }
00112 virtual ~LaplacianSharpeningImageFilter() {}
00113
00119 void GenerateData();
00120 void PrintSelf(std::ostream&, Indent) const;
00121
00122 private:
00123 LaplacianSharpeningImageFilter(const Self&);
00124 void operator=(const Self&);
00125 bool m_UseImageSpacing;
00126
00127 };
00128
00129 }
00130
00131 #ifndef ITK_MANUAL_INSTANTIATION
00132 #include "itkLaplacianSharpeningImageFilter.txx"
00133 #endif
00134
00135 #endif