ITK  5.4.0
Insight Toolkit
itkPermuteAxesImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
22#include "itkFixedArray.h"
23
24namespace itk
25{
50template <typename TImage>
51class ITK_TEMPLATE_EXPORT PermuteAxesImageFilter : public ImageToImageFilter<TImage, TImage>
52{
53public:
54 ITK_DISALLOW_COPY_AND_MOVE(PermuteAxesImageFilter);
55
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(PermuteAxesImageFilter);
67
69 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
70
72 using typename Superclass::InputImagePointer;
73 using typename Superclass::OutputImagePointer;
74 using typename Superclass::OutputImageRegionType;
75
78
81 void
83
85 itkGetConstReferenceMacro(Order, PermuteOrderArrayType);
86
88 itkGetConstReferenceMacro(InverseOrder, PermuteOrderArrayType);
89
90protected:
100 void
102
111 void
113
115 ~PermuteAxesImageFilter() override = default;
116 void
117 PrintSelf(std::ostream & os, Indent indent) const override;
118
129 void
130 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
131
132
133private:
135 PermuteOrderArrayType m_InverseOrder{};
136};
137} // end namespace itk
138
139#ifndef ITK_MANUAL_INSTANTIATION
140# include "itkPermuteAxesImageFilter.hxx"
141#endif
142
143#endif
typename OutputImageType::RegionType 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:50
Light weight base class for most itk classes.
Permutes the image axes according to a user specified order.
void SetOrder(const PermuteOrderArrayType &order)
void GenerateInputRequestedRegion() override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
~PermuteAxesImageFilter() override=default
void GenerateOutputInformation() override
void PrintSelf(std::ostream &os, Indent indent) const override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....