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

itkLaplacianImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLaplacianImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/09/10 14:28:51 $
00007   Version:   $Revision: 1.11 $
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 __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:
00057   typedef LaplacianImageFilter Self;
00058   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00059 
00062   typedef typename TOutputImage::PixelType OutputPixelType;
00063   typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00064   typedef typename TInputImage::PixelType InputPixelType;
00065   typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       TOutputImage::ImageDimension);
00068   
00070   typedef TInputImage  InputImageType;
00071   typedef TOutputImage OutputImageType;
00072   typedef typename InputImageType::Pointer InputImagePointer;
00073 
00075   typedef SmartPointer<Self> Pointer;
00076   typedef SmartPointer<const Self>  ConstPointer;
00077   
00079   itkTypeMacro(LaplacianImageFilter, ImageToImageFilter);
00080   
00082   itkNewMacro(Self);
00083 
00091   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00092 
00095   void SetUseImageSpacingOn()
00096   { this->SetUseImageSpacing(true); }
00097   
00100   void SetUseImageSpacingOff()
00101   { this->SetUseImageSpacing(false); }
00102   
00105   itkSetMacro(UseImageSpacing, bool);
00106   itkGetMacro(UseImageSpacing, bool);
00107   
00108   
00109 protected:
00110   LaplacianImageFilter()
00111   {
00112     m_UseImageSpacing = true;
00113   }
00114   virtual ~LaplacianImageFilter()  {}
00115 
00121   void GenerateData();
00122   void PrintSelf(std::ostream&, Indent) const;
00123 
00124 private:
00125   LaplacianImageFilter(const Self&); //purposely not implemented
00126   void operator=(const Self&); //purposely not implemented
00127   bool m_UseImageSpacing;
00128   
00129 };
00130   
00131 } // end namespace itk
00132 
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkLaplacianImageFilter.txx"
00135 #endif
00136 
00137 #endif

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