Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkSobelEdgeDetectionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSobelEdgeDetectionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-17 20:49:56 $
00007   Version:   $Revision: 1.13 $
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 __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   //void operator=(const Self&) {}
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 } // end namespace itk
00142 
00143 #ifndef ITK_MANUAL_INSTANTIATION
00144 #include "itkSobelEdgeDetectionImageFilter.txx"
00145 #endif
00146 
00147 #endif
00148 

Generated at Sat Feb 28 13:35:04 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000