ITK  4.8.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 >
52  public ImageToImageFilter< TImage, TImage >
53 {
54 public:
60 
62  itkNewMacro(Self);
63 
66 
68  itkStaticConstMacro(ImageDimension, unsigned int,
69  TImage::ImageDimension);
70 
75 
78 
81  void SetOrder(const PermuteOrderArrayType & order);
82 
84  itkGetConstReferenceMacro(Order, PermuteOrderArrayType);
85 
87  itkGetConstReferenceMacro(InverseOrder, PermuteOrderArrayType);
88 
96  virtual void GenerateOutputInformation() ITK_OVERRIDE;
97 
103  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
104 
105 protected:
107  ~PermuteAxesImageFilter() {}
108  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
109 
120  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
121  ThreadIdType threadId) ITK_OVERRIDE;
122 
123 private:
124  PermuteAxesImageFilter(const Self &); //purposely not implemented
125  void operator=(const Self &); //purposely not implemented
126 
129 };
130 } // end namespace itk
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 #include "itkPermuteAxesImageFilter.hxx"
134 #endif
135 
136 #endif
virtual void GenerateInputRequestedRegion() override
Superclass::OutputImageRegionType OutputImageRegionType
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
Superclass::OutputImagePointer OutputImagePointer
virtual void GenerateOutputInformation() override
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::InputImagePointer InputImagePointer
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
OutputImageType::Pointer OutputImagePointer
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Permutes the image axes according to a user specified order.
FixedArray< unsigned int, itkGetStaticConstMacro(ImageDimension) > PermuteOrderArrayType
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
void operator=(const Self &)
Superclass::OutputImageRegionType OutputImageRegionType
void SetOrder(const PermuteOrderArrayType &order)
ImageToImageFilter< TImage, TImage > Superclass
static const unsigned int ImageDimension