ITK  4.2.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 protected:
102  void PrintSelf(std::ostream & os, Indent indent) const;
104 
108  virtual void GenerateOutputInformation();
109 
114  virtual void GenerateInputRequestedRegion();
115 
119  virtual void ThreadedGenerateData(const OutputImageRegionType &
120  outputRegionForThread, ThreadIdType threadId);
121 
122 private:
123  JoinSeriesImageFilter(const Self &); //purposely not implemented
124  void operator=(const Self &); //purposely not implemented
125 
128  typedef unsigned int IndexValueType;
129 
130  double m_Spacing;
131  double m_Origin;
132 };
133 } // end namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 #include "itkJoinSeriesImageFilter.hxx"
137 #endif
138 
139 #endif
140