itkJoinSeriesImageFilter.h
Go to the documentation of this file.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);
00079
00081 itkSetMacro(Spacing, double);
00082 itkGetConstMacro(Spacing, double);
00084
00086 itkSetMacro(Origin, double);
00087 itkGetConstMacro(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&);
00123 void operator=(const Self&);
00124
00127 typedef unsigned int IndexValueType;
00128
00129 double m_Spacing;
00130 double m_Origin;
00131
00132 };
00133
00134
00135 }
00136
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkJoinSeriesImageFilter.txx"
00139 #endif
00140
00141 #endif
00142