ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkPermuteAxesImageFilter.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 itkPermuteAxesImageFilter_h
19 #define itkPermuteAxesImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkFixedArray.h"
23 
24 namespace itk
25 {
50 template< typename TImage >
51 class ITK_TEMPLATE_EXPORT PermuteAxesImageFilter:
52  public ImageToImageFilter< TImage, TImage >
53 {
54 public:
55  ITK_DISALLOW_COPY_AND_ASSIGN(PermuteAxesImageFilter);
56 
62 
64  itkNewMacro(Self);
65 
68 
70  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
71 
73  using InputImagePointer = typename Superclass::InputImagePointer;
74  using OutputImagePointer = typename Superclass::OutputImagePointer;
75  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
76 
79 
82  void SetOrder(const PermuteOrderArrayType & order);
83 
85  itkGetConstReferenceMacro(Order, PermuteOrderArrayType);
86 
88  itkGetConstReferenceMacro(InverseOrder, PermuteOrderArrayType);
89 
90 protected:
98  void GenerateOutputInformation() override;
99 
105  void GenerateInputRequestedRegion() override;
106 
108  ~PermuteAxesImageFilter() override = default;
109  void PrintSelf(std::ostream & os, Indent indent) const override;
110 
121  void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
122 
123 
124 private:
127 };
128 } // end namespace itk
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkPermuteAxesImageFilter.hxx"
132 #endif
133 
134 #endif
Light weight base class for most itk classes.
typename Superclass::OutputImagePointer OutputImagePointer
typename Superclass::InputImagePointer InputImagePointer
Permutes the image axes according to a user specified order.
typename Superclass::OutputImageRegionType OutputImageRegionType
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