ITK  4.13.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< typename TInputImage, typename TOutputImage >
50 class ITK_TEMPLATE_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  // Begin concept checking
93  itkConceptMacro( InputConvertibleToOutputCheck,
94  ( Concept::Convertible< typename TInputImage::PixelType,
95  typename TOutputImage::PixelType > ) );
96  // End concept checking
97 #endif
98 
99 protected:
101  ~JoinSeriesImageFilter() ITK_OVERRIDE {}
102  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
103 
109  virtual void VerifyInputInformation() ITK_OVERRIDE;
110 
114  virtual void GenerateOutputInformation() ITK_OVERRIDE;
115 
120  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
121 
125  virtual void ThreadedGenerateData(const OutputImageRegionType &
126  outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE;
127 
128 private:
129  ITK_DISALLOW_COPY_AND_ASSIGN(JoinSeriesImageFilter);
130 
133  typedef unsigned int IndexValueType;
134 
135  double m_Spacing;
136  double m_Origin;
137 };
138 } // end namespace itk
139 
140 #ifndef ITK_MANUAL_INSTANTIATION
141 #include "itkJoinSeriesImageFilter.hxx"
142 #endif
143 
144 #endif
InputImageType::Pointer InputImagePointer
OutputImageType::Pointer OutputImagePointer
OutputImageType::RegionType OutputImageRegionType
Join N-D images into an (N+1)-D image.
Base class for all process objects that output image data.
Superclass::OutputImageType OutputImageType
InputImageType::RegionType InputImageRegionType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
Superclass::InputImageType InputImageType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
SmartPointer< const Self > ConstPointer