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

itkImageToImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkImageToImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:12 $ 00007 Version: $Revision: 1.40 $ 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 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 #ifndef __itkImageToImageFilter_h 00021 #define __itkImageToImageFilter_h 00022 00023 #include "itkImageSource.h" 00024 #include "itkConceptChecking.h" 00025 #include "itkImageToImageFilterDetail.h" 00026 00027 namespace itk 00028 { 00029 00062 template <class TInputImage, class TOutputImage> 00063 class ITK_EXPORT ImageToImageFilter : public ImageSource<TOutputImage> 00064 { 00065 public: 00067 typedef ImageToImageFilter Self; 00068 typedef ImageSource<TOutputImage> Superclass; 00069 typedef SmartPointer<Self> Pointer; 00070 typedef SmartPointer<const Self> ConstPointer; 00071 00072 00074 itkTypeMacro(ImageToImageFilter,ImageSource); 00075 00077 typedef typename Superclass::OutputImageRegionType OutputImageRegionType; 00078 00080 typedef TInputImage InputImageType; 00081 typedef typename InputImageType::Pointer InputImagePointer; 00082 typedef typename InputImageType::ConstPointer InputImageConstPointer; 00083 typedef typename InputImageType::RegionType InputImageRegionType; 00084 typedef typename InputImageType::PixelType InputImagePixelType; 00085 00087 itkStaticConstMacro(InputImageDimension, unsigned int, 00088 TInputImage::ImageDimension); 00089 itkStaticConstMacro(OutputImageDimension, unsigned int, 00090 TOutputImage::ImageDimension); 00091 00093 virtual void SetInput( const InputImageType *image); 00094 virtual void SetInput( unsigned int, const TInputImage * image); 00095 const InputImageType * GetInput(void); 00096 const InputImageType * GetInput(unsigned int idx); 00097 00098 00099 protected: 00100 ImageToImageFilter(); 00101 ~ImageToImageFilter(); 00102 00103 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00104 00129 virtual void GenerateInputRequestedRegion(); 00130 00131 00134 typedef ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(OutputImageDimension), 00135 itkGetStaticConstMacro(InputImageDimension)> InputToOutputRegionCopierType; 00136 00139 typedef ImageToImageFilterDetail::ImageRegionCopier<itkGetStaticConstMacro(InputImageDimension), 00140 itkGetStaticConstMacro(OutputImageDimension)> OutputToInputRegionCopierType; 00141 00177 virtual void CallCopyOutputRegionToInputRegion(InputImageRegionType &destRegion, 00178 const OutputImageRegionType &srcRegion); 00179 00210 virtual void CallCopyInputRegionToOutputRegion(OutputImageRegionType &destRegion, 00211 const InputImageRegionType &srcRegion); 00212 00213 00214 private: 00215 ImageToImageFilter(const Self&); //purposely not implemented 00216 void operator=(const Self&); //purposely not implemented 00217 }; 00218 00219 } // end namespace itk 00220 00221 #ifndef ITK_MANUAL_INSTANTIATION 00222 #include "itkImageToImageFilter.txx" 00223 #endif 00224 00225 #endif

Generated at Sat Mar 31 02:22:48 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000