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: 2009-04-25 12:27:29 $
00007   Version:   $Revision: 1.3 $
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:
00052 
00054   typedef LaplacianSharpeningImageFilter                  Self;
00055   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00056 
00059   typedef typename TOutputImage::PixelType                  OutputPixelType;
00060   typedef typename TOutputImage::InternalPixelType          OutputInternalPixelType;
00061   typedef typename NumericTraits<OutputPixelType>::RealType RealType;
00062   typedef typename TInputImage::PixelType                   InputPixelType;
00063   typedef typename TInputImage::InternalPixelType           InputInternalPixelType;
00064   itkStaticConstMacro(ImageDimension, unsigned int,
00065                       TOutputImage::ImageDimension);
00066 
00068   typedef TInputImage                      InputImageType;
00069   typedef TOutputImage                     OutputImageType;
00070   typedef typename InputImageType::Pointer InputImagePointer;
00071 
00073   typedef SmartPointer<Self>        Pointer;
00074   typedef SmartPointer<const Self>  ConstPointer;
00075 
00077   itkTypeMacro(LaplacianSharpeningImageFilter, ImageToImageFilter);
00078 
00080   itkNewMacro(Self);
00081 
00090   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00091 
00094   void SetUseImageSpacingOn()
00095     { this->SetUseImageSpacing(true); }
00096 
00099   void SetUseImageSpacingOff()
00100     { this->SetUseImageSpacing(false); }
00101 
00104   itkSetMacro(UseImageSpacing, bool);
00105   itkGetConstMacro(UseImageSpacing, bool);
00107 
00108   
00109 protected:
00110   LaplacianSharpeningImageFilter()
00111     {
00112     m_UseImageSpacing = true;
00113     }
00114   virtual ~LaplacianSharpeningImageFilter()  {}
00115 
00121   void GenerateData();
00122   void PrintSelf(std::ostream&, Indent) const;
00124 
00125 private:
00126   LaplacianSharpeningImageFilter(const Self&); //purposely not implemented
00127   void operator=(const Self&); //purposely not implemented
00128   bool m_UseImageSpacing;
00129   
00130 };
00131   
00132 } // end namespace itk
00133 
00134 #ifndef ITK_MANUAL_INSTANTIATION
00135 #include "itkLaplacianSharpeningImageFilter.txx"
00136 #endif
00137 
00138 #endif
00139 

Generated at Fri Apr 16 18:56:51 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000