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: 2003/09/10 14:28:53 $ 00007 Version: $Revision: 1.2 $ 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); 00054 00056 typedef TInputImage InputImageType; 00057 typedef TOutputImage OutputImageType; 00058 00060 typedef NoiseImageFilter Self; 00061 typedef ImageToImageFilter< InputImageType, OutputImageType> Superclass; 00062 typedef SmartPointer<Self> Pointer; 00063 typedef SmartPointer<const Self> ConstPointer; 00064 00066 itkNewMacro(Self); 00067 00069 itkTypeMacro(NoiseImageFilter, ImageToImageFilter); 00070 00072 typedef typename InputImageType::PixelType InputPixelType; 00073 typedef typename OutputImageType::PixelType OutputPixelType; 00074 typedef typename NumericTraits<InputPixelType>::RealType InputRealType; 00075 00076 typedef typename InputImageType::RegionType InputImageRegionType; 00077 typedef typename OutputImageType::RegionType OutputImageRegionType; 00078 00079 typedef typename InputImageType::SizeType InputSizeType; 00080 00084 itkSetMacro(Radius, InputSizeType); 00085 00087 itkGetConstReferenceMacro(Radius, InputSizeType); 00088 00095 virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError); 00096 00097 protected: 00098 NoiseImageFilter(); 00099 virtual ~NoiseImageFilter() {} 00100 void PrintSelf(std::ostream& os, Indent indent) const; 00101 00112 void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, 00113 int threadId ); 00114 00115 private: 00116 NoiseImageFilter(const Self&); //purposely not implemented 00117 void operator=(const Self&); //purposely not implemented 00118 00119 InputSizeType m_Radius; 00120 }; 00121 00122 } // end namespace itk 00123 00124 #ifndef ITK_MANUAL_INSTANTIATION 00125 #include "itkNoiseImageFilter.txx" 00126 #endif 00127 00128 #endif

Generated at Sun Apr 1 02:39:41 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000