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: 2009-04-25 12:27:28 $
00007   Version:   $Revision: 1.15 $
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 {
00058 template <class TInputImage, class TOutputImage>
00059 class ITK_EXPORT LaplacianImageFilter : 
00060     public ImageToImageFilter< TInputImage, TOutputImage > 
00061 {
00062 public:
00063 
00065   typedef LaplacianImageFilter                            Self;
00066   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00067 
00070   typedef typename TOutputImage::PixelType         OutputPixelType;
00071   typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00072   typedef typename TInputImage::PixelType          InputPixelType;
00073   typedef typename TInputImage::InternalPixelType  InputInternalPixelType;
00074   itkStaticConstMacro(InputImageDimension, unsigned int,
00075                       TInputImage::ImageDimension);
00076   itkStaticConstMacro(ImageDimension, unsigned int,
00077                       TOutputImage::ImageDimension);
00079 
00081   typedef TInputImage                      InputImageType;
00082   typedef TOutputImage                     OutputImageType;
00083   typedef typename InputImageType::Pointer InputImagePointer;
00084 
00086   typedef SmartPointer<Self>        Pointer;
00087   typedef SmartPointer<const Self>  ConstPointer;
00088 
00090   itkTypeMacro(LaplacianImageFilter, ImageToImageFilter);
00091 
00093   itkNewMacro(Self);
00094 
00102   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00103 
00106   void SetUseImageSpacingOn()
00107     { this->SetUseImageSpacing(true); }
00108 
00111   void SetUseImageSpacingOff()
00112     { this->SetUseImageSpacing(false); }
00113 
00116   itkSetMacro(UseImageSpacing, bool);
00117   itkGetConstMacro(UseImageSpacing, bool);
00119 
00120 #ifdef ITK_USE_CONCEPT_CHECKING
00121 
00122   itkConceptMacro(SameDimensionCheck,
00123     (Concept::SameDimension<InputImageDimension, ImageDimension>));
00124   itkConceptMacro(InputPixelTypeIsFloatingPointCheck,
00125     (Concept::IsFloatingPoint<InputPixelType>));
00126   itkConceptMacro(OutputPixelTypeIsFloatingPointCheck,
00127     (Concept::IsFloatingPoint<OutputPixelType>));
00128 
00130 #endif
00131 
00132 protected:
00133   LaplacianImageFilter()
00134     {
00135     m_UseImageSpacing = true;
00136     }
00137   virtual ~LaplacianImageFilter()  {}
00138 
00144   void GenerateData();
00145   void PrintSelf(std::ostream&, Indent) const;
00147 
00148 private:
00149   LaplacianImageFilter(const Self&); //purposely not implemented
00150   void operator=(const Self&); //purposely not implemented
00151   bool m_UseImageSpacing;
00152   
00153 };
00154   
00155 } // end namespace itk
00156 
00157 #ifndef ITK_MANUAL_INSTANTIATION
00158 #include "itkLaplacianImageFilter.txx"
00159 #endif
00160 
00161 #endif
00162 

Generated at Mon Jul 12 2010 19:02:00 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000