ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkJoinSeriesImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkJoinSeriesImageFilter_h
00019 #define __itkJoinSeriesImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk
00024 {
00049 template< class TInputImage, class TOutputImage >
00050 class ITK_EXPORT JoinSeriesImageFilter:
00051   public ImageToImageFilter< TInputImage, TOutputImage >
00052 {
00053 public:
00055   typedef JoinSeriesImageFilter                           Self;
00056   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00057   typedef SmartPointer< Self >                            Pointer;
00058   typedef SmartPointer< const Self >                      ConstPointer;
00059 
00061   itkNewMacro(Self);
00062 
00064   itkTypeMacro(JoinSeriesImageFilter, ImageToImageFilter);
00065 
00067   typedef typename Superclass::InputImageType  InputImageType;
00068   typedef typename Superclass::OutputImageType OutputImageType;
00069   typedef typename InputImageType::Pointer     InputImagePointer;
00070   typedef typename OutputImageType::Pointer    OutputImagePointer;
00071   typedef typename InputImageType::RegionType  InputImageRegionType;
00072   typedef typename OutputImageType::RegionType OutputImageRegionType;
00073 
00075   itkStaticConstMacro(InputImageDimension, unsigned int,
00076                       TInputImage::ImageDimension);
00077   itkStaticConstMacro(OutputImageDimension, unsigned int,
00078                       TOutputImage::ImageDimension);
00080 
00082   itkSetMacro(Spacing, double);
00083   itkGetConstMacro(Spacing, double);
00085 
00087   itkSetMacro(Origin, double);
00088   itkGetConstMacro(Origin, double);
00090 
00091 #ifdef ITK_USE_CONCEPT_CHECKING
00092 
00093   itkConceptMacro( InputConvertibleToOutputCheck,
00094                    ( Concept::Convertible< typename TInputImage::PixelType,
00095                                            typename TOutputImage::PixelType > ) );
00096 
00098 #endif
00099 protected:
00100   JoinSeriesImageFilter();
00101   ~JoinSeriesImageFilter() {}
00102   void PrintSelf(std::ostream & os, Indent indent) const;
00104 
00108   virtual void GenerateOutputInformation();
00109 
00114   virtual void GenerateInputRequestedRegion();
00115 
00119   virtual void ThreadedGenerateData(const OutputImageRegionType &
00120                                     outputRegionForThread, ThreadIdType threadId);
00121 
00122 private:
00123   JoinSeriesImageFilter(const Self &); //purposely not implemented
00124   void operator=(const Self &);        //purposely not implemented
00125 
00128   typedef unsigned int IndexValueType;
00129 
00130   double m_Spacing;
00131   double m_Origin;
00132 };
00133 } // end namespace itk
00134 
00135 #ifndef ITK_MANUAL_INSTANTIATION
00136 #include "itkJoinSeriesImageFilter.hxx"
00137 #endif
00138 
00139 #endif
00140