00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkSobelEdgeDetectionImageFilter_h
00018 #define __itkSobelEdgeDetectionImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022
00023 namespace itk
00024 {
00043 template <class TInputImage, class TOutputImage>
00044 class ITK_EXPORT SobelEdgeDetectionImageFilter :
00045 public ImageToImageFilter< TInputImage, TOutputImage >
00046 {
00047 public:
00051 typedef SobelEdgeDetectionImageFilter Self;
00052 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00053
00058 typedef typename TOutputImage::PixelType OutputPixelType;
00059 typedef typename TOutputImage::InternalPixelType OutputInternalPixelType;
00060 typedef typename TInputImage::PixelType InputPixelType;
00061 typedef typename TInputImage::InternalPixelType InputInternalPixelType;
00062 itkStaticConstMacro(ImageDimension, unsigned int,
00063 TOutputImage::ImageDimension );
00064 itkStaticConstMacro(InputImageDimension, unsigned int,
00065 TInputImage::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 #ifdef ITK_USE_CONCEPT_CHECKING
00103
00104 itkConceptMacro(SameDimensionCheck,
00105 (Concept::SameDimension<InputImageDimension, ImageDimension>));
00106 itkConceptMacro(OutputHasNumericTraitsCheck,
00107 (Concept::HasNumericTraits<OutputPixelType>));
00108
00110 #endif
00111
00112 protected:
00113 SobelEdgeDetectionImageFilter() {}
00114 virtual ~SobelEdgeDetectionImageFilter() {}
00115 SobelEdgeDetectionImageFilter(const Self&) {}
00116
00117
00125 void GenerateData();
00126 void PrintSelf(std::ostream& os, Indent indent) const
00127 { Superclass::PrintSelf(os,indent); }
00129
00130
00131 private:
00132
00133 };
00134
00135 }
00136
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkSobelEdgeDetectionImageFilter.txx"
00139 #endif
00140
00141 #endif
00142