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

itkNoiseImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNoiseImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/03/30 15:36:24 $
00007   Version:   $Revision: 1.3 $
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 __itkNoiseImageFilter_h
00018 #define __itkNoiseImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkImage.h"
00022 #include "itkNumericTraits.h"
00023 
00024 namespace itk
00025 {
00044 template <class TInputImage, class TOutputImage>
00045 class ITK_EXPORT NoiseImageFilter :
00046     public ImageToImageFilter< TInputImage, TOutputImage >
00047 {
00048 public:
00050   itkStaticConstMacro(InputImageDimension, unsigned int,
00051                       TInputImage::ImageDimension);
00052   itkStaticConstMacro(OutputImageDimension, unsigned int,
00053                       TOutputImage::ImageDimension);
00055 
00057   typedef TInputImage InputImageType;
00058   typedef TOutputImage OutputImageType;
00059 
00061   typedef NoiseImageFilter Self;
00062   typedef ImageToImageFilter< InputImageType, OutputImageType> Superclass;
00063   typedef SmartPointer<Self> Pointer;
00064   typedef SmartPointer<const Self>  ConstPointer;
00065 
00067   itkNewMacro(Self);
00068 
00070   itkTypeMacro(NoiseImageFilter, ImageToImageFilter);
00071 
00073   typedef typename InputImageType::PixelType InputPixelType;
00074   typedef typename OutputImageType::PixelType OutputPixelType;
00075   typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00076 
00077   typedef typename InputImageType::RegionType InputImageRegionType;
00078   typedef typename OutputImageType::RegionType OutputImageRegionType;
00079 
00080   typedef typename InputImageType::SizeType InputSizeType;
00081 
00085   itkSetMacro(Radius, InputSizeType);
00086 
00088   itkGetConstReferenceMacro(Radius, InputSizeType);
00089 
00096   virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError);
00097 
00098 #ifdef ITK_USE_CONCEPT_CHECKING
00099 
00100   itkConceptMacro(InputHasNumericTraitsCheck,
00101                   (Concept::HasNumericTraits<InputPixelType>));
00102 
00104 #endif
00105 
00106 protected:
00107   NoiseImageFilter();
00108   virtual ~NoiseImageFilter() {}
00109   void PrintSelf(std::ostream& os, Indent indent) const;
00110 
00121   void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
00122                             int threadId );
00123 
00124 private:
00125   NoiseImageFilter(const Self&); //purposely not implemented
00126   void operator=(const Self&); //purposely not implemented
00127 
00128   InputSizeType m_Radius;
00129 };
00130   
00131 } // end namespace itk
00132 
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkNoiseImageFilter.txx"
00135 #endif
00136 
00137 #endif
00138 

Generated at Mon Mar 12 01:53:50 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000