ITK  4.2.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< class TImage >
53 class ITK_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 
95  itkBooleanMacro(FlipAboutOrigin);
96  itkGetConstMacro(FlipAboutOrigin, bool);
97  itkSetMacro(FlipAboutOrigin, bool);
99 
106  virtual void GenerateOutputInformation();
107 
113  virtual void GenerateInputRequestedRegion();
114 
115 protected:
116  FlipImageFilter();
118  void PrintSelf(std::ostream & os, Indent indent) const;
119 
130  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread,
131  ThreadIdType threadId);
132 
133 private:
134  FlipImageFilter(const Self &); //purposely not implemented
135  void operator=(const Self &); //purposely not implemented
136 
139 };
140 } // end namespace itk
141 
142 #ifndef ITK_MANUAL_INSTANTIATION
143 #include "itkFlipImageFilter.hxx"
144 #endif
145 
146 #endif
147