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

itkGradientMagnitudeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGradientMagnitudeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/30 15:24:40 $
00007   Version:   $Revision: 1.23 $
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 __itkGradientMagnitudeImageFilter_h
00018 #define __itkGradientMagnitudeImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022 
00023 namespace itk
00024 {
00041 template <typename TInputImage, typename TOutputImage>
00042 class ITK_EXPORT GradientMagnitudeImageFilter :
00043     public ImageToImageFilter< TInputImage, TOutputImage >
00044 {
00045 public:
00047   typedef GradientMagnitudeImageFilter Self;
00048   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00049   typedef SmartPointer<Self> Pointer;
00050   typedef SmartPointer<const Self>  ConstPointer;
00051 
00053   itkNewMacro(Self);
00054 
00056   itkTypeMacro(GradientMagnitudeImageFilter, ImageToImageFilter);
00057   
00060   typedef typename TOutputImage::PixelType OutputPixelType;
00061   typedef typename TInputImage::PixelType InputPixelType;
00062   typedef typename NumericTraits<InputPixelType>::RealType RealType;
00063 
00066   itkStaticConstMacro(ImageDimension, unsigned int,
00067                       TOutputImage::ImageDimension);
00068   
00070   typedef TInputImage  InputImageType;
00071   typedef TOutputImage OutputImageType;
00072   typedef typename InputImageType::Pointer InputImagePointer;
00073   typedef typename OutputImageType::Pointer OutputImagePointer;
00074   
00076   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00077 
00086   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00087 
00088 protected:
00089   GradientMagnitudeImageFilter() {}
00090   virtual ~GradientMagnitudeImageFilter() {}
00091 
00103   void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
00104                             int threadId );
00105 
00106   void PrintSelf(std::ostream& os, Indent indent) const
00107     {  Superclass::PrintSelf(os,indent);   }
00108   
00109 private:
00110   GradientMagnitudeImageFilter(const Self&); //purposely not implemented
00111   void operator=(const Self&); //purposely not implemented
00112   
00113 
00114 };
00115   
00116 } // end namespace itk
00117 
00118 #ifndef ITK_MANUAL_INSTANTIATION
00119 #include "itkGradientMagnitudeImageFilter.txx"
00120 #endif
00121 
00122 #endif

Generated at Wed Mar 12 01:12:58 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000