00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkLaplacianImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/09/30 15:24:40 $ 00007 Version: $Revision: 1.7 $ 00008 00009 Copyright (c) 2002 Insight 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 { 00049 template <class TInputImage, class TOutputImage> 00050 class ITK_EXPORT LaplacianImageFilter : 00051 public ImageToImageFilter< TInputImage, TOutputImage > 00052 { 00053 public: 00055 typedef LaplacianImageFilter Self; 00056 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass; 00057 00060 typedef typename TOutputImage::PixelType OutputPixelType; 00061 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType; 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(LaplacianImageFilter, ImageToImageFilter); 00078 00080 itkNewMacro(Self); 00081 00089 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError); 00090 00091 protected: 00092 LaplacianImageFilter() {} 00093 virtual ~LaplacianImageFilter() {} 00094 00100 void GenerateData(); 00101 void PrintSelf(std::ostream& os, Indent indent) const 00102 { Superclass::PrintSelf(os,indent); } 00103 00104 private: 00105 LaplacianImageFilter(const Self&); //purposely not implemented 00106 void operator=(const Self&); //purposely not implemented 00107 00108 }; 00109 00110 } // end namespace itk 00111 00112 #ifndef ITK_MANUAL_INSTANTIATION 00113 #include "itkLaplacianImageFilter.txx" 00114 #endif 00115 00116 #endif