ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkJoinSeriesImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkJoinSeriesImageFilter_h
19 #define __itkJoinSeriesImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
49 template< class TInputImage, class TOutputImage >
50 class ITK_EXPORT JoinSeriesImageFilter:
51  public ImageToImageFilter< TInputImage, TOutputImage >
52 {
53 public:
59 
61  itkNewMacro(Self);
62 
65 
67  typedef typename Superclass::InputImageType InputImageType;
68  typedef typename Superclass::OutputImageType OutputImageType;
69  typedef typename InputImageType::Pointer InputImagePointer;
70  typedef typename OutputImageType::Pointer OutputImagePointer;
71  typedef typename InputImageType::RegionType InputImageRegionType;
72  typedef typename OutputImageType::RegionType OutputImageRegionType;
73 
75  itkStaticConstMacro(InputImageDimension, unsigned int,
76  TInputImage::ImageDimension);
77  itkStaticConstMacro(OutputImageDimension, unsigned int,
78  TOutputImage::ImageDimension);
80 
82  itkSetMacro(Spacing, double);
83  itkGetConstMacro(Spacing, double);
85 
87  itkSetMacro(Origin, double);
88  itkGetConstMacro(Origin, double);
90 
91 #ifdef ITK_USE_CONCEPT_CHECKING
92 
93  itkConceptMacro( InputConvertibleToOutputCheck,
94  ( Concept::Convertible< typename TInputImage::PixelType,
95  typename TOutputImage::PixelType > ) );
96 
98 #endif
99 
100 protected:
103  void PrintSelf(std::ostream & os, Indent indent) const;
104 
110  virtual void VerifyInputInformation();
111 
115  virtual void GenerateOutputInformation();
116 
121  virtual void GenerateInputRequestedRegion();
122 
126  virtual void ThreadedGenerateData(const OutputImageRegionType &
127  outputRegionForThread, ThreadIdType threadId);
128 
129 private:
130  JoinSeriesImageFilter(const Self &); //purposely not implemented
131  void operator=(const Self &); //purposely not implemented
132 
135  typedef unsigned int IndexValueType;
136 
137  double m_Spacing;
138  double m_Origin;
139 };
140 } // end namespace itk
141 
142 #ifndef ITK_MANUAL_INSTANTIATION
143 #include "itkJoinSeriesImageFilter.hxx"
144 #endif
145 
146 #endif
147