ITK  4.6.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 >
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 
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
Superclass::OutputImageRegionType OutputImageRegionType
Light weight base class for most itk classes.
virtual void GenerateInputRequestedRegion()
InputImageType::ConstPointer InputImageConstPointer
SmartPointer< const Self > ConstPointer
signed long IndexValueType
Definition: itkIntTypes.h:150
Superclass::OutputImagePointer OutputImagePointer
TImage::IndexType IndexType
virtual void GenerateOutputInformation()
FlipAxesArrayType m_FlipAxes
OutputImageType::Pointer OutputImagePointer
ImageToImageFilter< TImage, TImage > Superclass
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId)
SmartPointer< Self > Pointer
void operator=(const Self &)
static const unsigned int ImageDimension
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::OutputImageRegionType OutputImageRegionType
Superclass::InputImagePointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const
FixedArray< bool, itkGetStaticConstMacro(ImageDimension) > FlipAxesArrayType
unsigned int ThreadIdType
Definition: itkIntTypes.h:159