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: 2006/03/22 16:26:39 $
00007   Version:   $Revision: 1.12 $
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:
00056 
00058   typedef LaplacianImageFilter Self;
00059   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00060 
00063   typedef typename TOutputImage::PixelType OutputPixelType;
00064   typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00065   typedef typename TInputImage::PixelType InputPixelType;
00066   typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00067   itkStaticConstMacro(InputImageDimension, unsigned int,
00068                       TInputImage::ImageDimension);
00069   itkStaticConstMacro(ImageDimension, unsigned int,
00070                       TOutputImage::ImageDimension);
00072 
00074   typedef TInputImage  InputImageType;
00075   typedef TOutputImage OutputImageType;
00076   typedef typename InputImageType::Pointer InputImagePointer;
00077 
00079   typedef SmartPointer<Self> Pointer;
00080   typedef SmartPointer<const Self>  ConstPointer;
00081 
00083   itkTypeMacro(LaplacianImageFilter, ImageToImageFilter);
00084 
00086   itkNewMacro(Self);
00087 
00095   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00096 
00099   void SetUseImageSpacingOn()
00100   { this->SetUseImageSpacing(true); }
00101 
00104   void SetUseImageSpacingOff()
00105   { this->SetUseImageSpacing(false); }
00106 
00109   itkSetMacro(UseImageSpacing, bool);
00110   itkGetMacro(UseImageSpacing, bool);
00112 
00113 #ifdef ITK_USE_CONCEPT_CHECKING
00114 
00115   itkConceptMacro(SameDimensionCheck,
00116     (Concept::SameDimension<InputImageDimension, ImageDimension>));
00117 
00119 #endif
00120 
00121 protected:
00122   LaplacianImageFilter()
00123   {
00124     m_UseImageSpacing = true;
00125   }
00126   virtual ~LaplacianImageFilter()  {}
00127 
00133   void GenerateData();
00134   void PrintSelf(std::ostream&, Indent) const;
00136 
00137 private:
00138   LaplacianImageFilter(const Self&); //purposely not implemented
00139   void operator=(const Self&); //purposely not implemented
00140   bool m_UseImageSpacing;
00141   
00142 };
00143   
00144 } // end namespace itk
00145 
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkLaplacianImageFilter.txx"
00148 #endif
00149 
00150 #endif
00151 

Generated at Mon Mar 12 01:29:07 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000