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

itkGradientImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGradientImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/30 15:24:40 $
00007   Version:   $Revision: 1.10 $
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 __itkGradientImageFilter_h
00018 #define __itkGradientImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022 #include "itkCovariantVector.h"
00023 
00024 namespace itk
00025 {
00048 template <class TInputImage, class TOperatorValueType=float, class TOutputValueType=float>
00049 class ITK_EXPORT GradientImageFilter :
00050     public ImageToImageFilter< TInputImage,
00051                                Image<CovariantVector<TOutputValueType, ::itk::GetImageDimension<TInputImage>::ImageDimension>,  ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00052 {
00053 public:
00055   itkStaticConstMacro(InputImageDimension, unsigned int,
00056                       TInputImage::ImageDimension);
00057   itkStaticConstMacro(OutputImageDimension, unsigned int,
00058                       TInputImage::ImageDimension);
00059 
00061   typedef GradientImageFilter Self;
00062 
00064   typedef TInputImage InputImageType;
00065   typedef typename InputImageType::Pointer InputImagePointer;
00066   typedef Image<CovariantVector<TOutputValueType, itkGetStaticConstMacro(OutputImageDimension)>,  itkGetStaticConstMacro(OutputImageDimension)> OutputImageType;
00067   typedef typename OutputImageType::Pointer OutputImagePointer;
00068 
00070   typedef ImageToImageFilter< InputImageType, OutputImageType> Superclass;
00071   typedef SmartPointer<Self> Pointer;
00072   typedef SmartPointer<const Self>  ConstPointer;
00073 
00075   itkNewMacro(Self);
00076 
00078   itkTypeMacro(GradientImageFilter, ImageToImageFilter);
00079   
00081   typedef typename InputImageType::PixelType InputPixelType;
00082   typedef TOperatorValueType OperatorValueType;
00083   typedef TOutputValueType OutputValueType;
00084   typedef CovariantVector<OutputValueType, itkGetStaticConstMacro(OutputImageDimension)> OutputPixelType;
00085   typedef typename OutputImageType::RegionType OutputImageRegionType;
00086   
00093   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00094 
00095 protected:
00096   GradientImageFilter() {}
00097   virtual ~GradientImageFilter() {}
00098 
00109   void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
00110                             int threadId );
00111 
00112 private:
00113   GradientImageFilter(const Self&); //purposely not implemented
00114   void operator=(const Self&); //purposely not implemented
00115 
00116 };
00117   
00118 } // end namespace itk
00119 
00120 #ifndef ITK_MANUAL_INSTANTIATION
00121 #include "itkGradientImageFilter.txx"
00122 #endif
00123 
00124 #endif

Generated at Fri May 21 01:14:50 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000