00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSobelEdgeDetectionImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/09/30 15:24:40 $ 00007 Version: $Revision: 1.6 $ 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 __itkSobelEdgeDetectionImageFilter_h 00018 #define __itkSobelEdgeDetectionImageFilter_h 00019 00020 #include "itkImageToImageFilter.h" 00021 #include "itkImage.h" 00022 00023 namespace itk 00024 { 00046 template <class TInputImage, class TOutputImage> 00047 class ITK_EXPORT SobelEdgeDetectionImageFilter : 00048 public ImageToImageFilter< TInputImage, TOutputImage > 00049 { 00050 public: 00054 typedef SobelEdgeDetectionImageFilter Self; 00055 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass; 00056 00061 typedef typename TOutputImage::PixelType OutputPixelType; 00062 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType; 00063 typedef typename TInputImage::PixelType InputPixelType; 00064 typedef typename TInputImage::InternalPixelType InputInternalPixelType; 00065 itkStaticConstMacro(ImageDimension, unsigned int, 00066 TOutputImage::ImageDimension ); 00067 00071 typedef TInputImage InputImageType; 00072 typedef TOutputImage OutputImageType; 00073 typedef typename InputImageType::Pointer InputImagePointer; 00074 00078 typedef SmartPointer<Self> Pointer; 00079 typedef SmartPointer<const Self> ConstPointer; 00080 00084 itkTypeMacro(SobelEdgeDetectionImageFilter, ImageToImageFilter); 00085 00089 itkNewMacro(Self); 00090 00100 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError); 00101 00102 protected: 00103 SobelEdgeDetectionImageFilter() {} 00104 virtual ~SobelEdgeDetectionImageFilter() {} 00105 SobelEdgeDetectionImageFilter(const Self&) {} 00106 //void operator=(const Self&) {} 00107 00115 void GenerateData(); 00116 void PrintSelf(std::ostream& os, Indent indent) const 00117 { Superclass::PrintSelf(os,indent); } 00118 00119 00120 private: 00121 00122 }; 00123 00124 } // end namespace itk 00125 00126 #ifndef ITK_MANUAL_INSTANTIATION 00127 #include "itkSobelEdgeDetectionImageFilter.txx" 00128 #endif 00129 00130 #endif