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: 2006/03/22 16:26:39 $
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 __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);
00079 
00081   itkSetMacro(Spacing, double);
00082   itkGetMacro(Spacing, double);
00084 
00086   itkSetMacro(Origin, double);
00087   itkGetMacro(Origin, double);
00089 
00090 #ifdef ITK_USE_CONCEPT_CHECKING
00091 
00092   itkConceptMacro(InputConvertibleToOutputCheck,
00093      (Concept::Convertible<typename TInputImage::PixelType,
00094                            typename TOutputImage::PixelType>));
00095 
00097 #endif
00098 
00099 protected:
00100   JoinSeriesImageFilter();
00101   ~JoinSeriesImageFilter() {};
00102   void PrintSelf(std::ostream& os, Indent indent) const;
00103 
00107   virtual void GenerateOutputInformation();
00108 
00113   virtual void GenerateInputRequestedRegion();
00114 
00118   virtual void ThreadedGenerateData(const OutputImageRegionType&
00119                                     outputRegionForThread, int threadId );
00120 
00121 private:
00122   JoinSeriesImageFilter(const Self&); //purposely not implemented
00123   void operator=(const Self&); //purposely not implemented
00124 
00127   typedef unsigned int IndexValueType;
00128 
00129   double m_Spacing;
00130   double m_Origin;
00131 
00132 };
00133 
00134   
00135 } // end namespace itk
00136   
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkJoinSeriesImageFilter.txx"
00139 #endif
00140   
00141 #endif
00142 

Generated at Tue Jul 29 20:59:23 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000