00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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&);
00111 void operator=(const Self&);
00112
00115 typedef unsigned int IndexValueType;
00116
00117 double m_Spacing;
00118 double m_Origin;
00119
00120 };
00121
00122
00123 }
00124
00125 #ifndef ITK_MANUAL_INSTANTIATION
00126 #include "itkJoinSeriesImageFilter.txx"
00127 #endif
00128
00129 #endif