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

itkJoinSeriesImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkJoinSeriesImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/01/12 21:16:54 $
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 __itkJoinSeriesImageFilter_h
00018 #define __itkJoinSeriesImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk
00023 {
00024 
00048 template <class TInputImage, class TOutputImage>
00049 class ITK_EXPORT JoinSeriesImageFilter:
00050     public ImageToImageFilter<TInputImage,TOutputImage>
00051 {
00052 public:
00054   typedef JoinSeriesImageFilter  Self;
00055   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00056   typedef SmartPointer<Self>  Pointer;
00057   typedef SmartPointer<const Self>  ConstPointer;
00058 
00060   itkNewMacro(Self);
00061 
00063   itkTypeMacro(JoinSeriesImageFilter, ImageToImageFilter);
00064 
00066   typedef typename Superclass::InputImageType InputImageType;
00067   typedef typename Superclass::OutputImageType OutputImageType;
00068   typedef typename InputImageType::Pointer InputImagePointer;
00069   typedef typename OutputImageType::Pointer OutputImagePointer;
00070   typedef typename InputImageType::RegionType InputImageRegionType;
00071   typedef typename OutputImageType::RegionType OutputImageRegionType;
00072 
00074   itkStaticConstMacro(InputImageDimension, unsigned int,
00075                       TInputImage::ImageDimension);
00076   itkStaticConstMacro(OutputImageDimension, unsigned int,
00077                       TOutputImage::ImageDimension);
00078 
00080   itkSetMacro(Spacing, double);
00081   itkGetMacro(Spacing, double);
00082 
00084   itkSetMacro(Origin, double);
00085   itkGetMacro(Origin, double);
00086 
00087 protected:
00088   JoinSeriesImageFilter();
00089   ~JoinSeriesImageFilter() {};
00090   void PrintSelf(std::ostream& os, Indent indent) const;
00091 
00095   virtual void GenerateOutputInformation();
00096 
00101   virtual void GenerateInputRequestedRegion();
00102 
00106   virtual void ThreadedGenerateData(const OutputImageRegionType&
00107                                     outputRegionForThread, int threadId );
00108 
00109 private:
00110   JoinSeriesImageFilter(const Self&); //purposely not implemented
00111   void operator=(const Self&); //purposely not implemented
00112 
00115   typedef unsigned int IndexValueType;
00116 
00117   double m_Spacing;
00118   double m_Origin;
00119 
00120 };
00121 
00122   
00123 } // end namespace itk
00124   
00125 #ifndef ITK_MANUAL_INSTANTIATION
00126 #include "itkJoinSeriesImageFilter.txx"
00127 #endif
00128   
00129 #endif

Generated at Wed May 24 23:30:37 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000