Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkLaplacianSharpeningImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLaplacianSharpeningImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2004/06/16 14:25:55 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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&); //purposely not implemented
00124   void operator=(const Self&); //purposely not implemented
00125   bool m_UseImageSpacing;
00126   
00127 };
00128   
00129 } // end namespace itk
00130 
00131 #ifndef ITK_MANUAL_INSTANTIATION
00132 #include "itkLaplacianSharpeningImageFilter.txx"
00133 #endif
00134 
00135 #endif

Generated at Wed May 24 23:32:42 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000