ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkFlipImageFilter.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 itkFlipImageFilter_h
19 #define itkFlipImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkFixedArray.h"
23 
24 namespace itk
25 {
52 template< typename TImage >
53 class ITK_TEMPLATE_EXPORT FlipImageFilter:
54  public ImageToImageFilter< TImage, TImage >
55 {
56 public:
62 
64  itkNewMacro(Self);
65 
67  itkTypeMacro(FlipImageFilter, ImageToImageFilter);
68 
70  itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
71 
73  typedef typename Superclass::InputImagePointer InputImagePointer;
74  typedef typename Superclass::InputImageConstPointer InputImageConstPointer;
75  typedef typename Superclass::OutputImagePointer OutputImagePointer;
76  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
77 
79  typedef typename TImage::IndexType IndexType;
81 
84 
87  itkSetMacro(FlipAxes, FlipAxesArrayType);
88  itkGetConstMacro(FlipAxes, FlipAxesArrayType);
90 
94  itkBooleanMacro(FlipAboutOrigin);
95  itkGetConstMacro(FlipAboutOrigin, bool);
96  itkSetMacro(FlipAboutOrigin, bool);
98 
107  virtual void GenerateOutputInformation() ITK_OVERRIDE;
108 
116  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
117 
118 protected:
119  FlipImageFilter();
120  ~FlipImageFilter() ITK_OVERRIDE {}
121  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
122 
133  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
134  ThreadIdType threadId) ITK_OVERRIDE;
135 
136 private:
137  ITK_DISALLOW_COPY_AND_ASSIGN(FlipImageFilter);
138 
141 };
142 } // end namespace itk
143 
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "itkFlipImageFilter.hxx"
146 #endif
147 
148 #endif
Superclass::OutputImageRegionType OutputImageRegionType
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
signed long IndexValueType
Definition: itkIntTypes.h:150
Superclass::OutputImagePointer OutputImagePointer
TImage::IndexType IndexType
FlipAxesArrayType m_FlipAxes
ImageToImageFilter< TImage, TImage > Superclass
SmartPointer< Self > Pointer
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Flips an image across user specified axes.
IndexType::IndexValueType IndexValueType
Base class for filters that take an image as input and produce an image as output.
Superclass::InputImageConstPointer InputImageConstPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::InputImagePointer InputImagePointer
FixedArray< bool, itkGetStaticConstMacro(ImageDimension) > FlipAxesArrayType