itkSobelEdgeDetectionImageFilter.h
Go to the documentation of this file.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>));
00109
00110 #ifdef ITK_USE_STRICT_CONCEPT_CHECKING
00111 itkConceptMacro(OutputPixelIsFloatingPointCheck,
00112 (Concept::IsFloatingPoint<OutputPixelType>));
00113 #endif
00114
00116 #endif
00117
00118 protected:
00119 SobelEdgeDetectionImageFilter() {}
00120 virtual ~SobelEdgeDetectionImageFilter() {}
00121 SobelEdgeDetectionImageFilter(const Self&) {}
00122
00123
00131 void GenerateData();
00132 void PrintSelf(std::ostream& os, Indent indent) const
00133 { Superclass::PrintSelf(os,indent); }
00135
00136
00137 private:
00138
00139 };
00140
00141 }
00142
00143 #ifndef ITK_MANUAL_INSTANTIATION
00144 #include "itkSobelEdgeDetectionImageFilter.txx"
00145 #endif
00146
00147 #endif
00148