Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFlipImageFilter.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFlipImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/10/14 17:58:41 $ 00007 Version: $Revision: 1.6 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef _itkFlipImageFilter_h 00018 #define _itkFlipImageFilter_h 00019 00020 #include "itkImageToImageFilter.h" 00021 #include "itkFixedArray.h" 00022 00023 namespace itk 00024 { 00025 00047 template <class TImage> 00048 class ITK_EXPORT FlipImageFilter : 00049 public ImageToImageFilter<TImage,TImage> 00050 { 00051 00052 public: 00054 typedef FlipImageFilter Self; 00055 typedef ImageToImageFilter<TImage,TImage> Superclass; 00056 typedef SmartPointer<Self> Pointer; 00057 typedef SmartPointer<const Self> ConstPointer; 00058 00060 itkNewMacro(Self); 00061 00063 itkTypeMacro(FlipImageFilter, ImageToImageFilter); 00064 00066 itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension); 00067 00069 typedef typename Superclass::InputImagePointer InputImagePointer; 00070 typedef typename Superclass::InputImageConstPointer InputImageConstPointer; 00071 typedef typename Superclass::OutputImagePointer OutputImagePointer; 00072 typedef typename Superclass::OutputImageRegionType OutputImageRegionType; 00073 00075 typedef typename TImage::IndexType IndexType; 00076 typedef typename IndexType::IndexValueType IndexValueType; 00077 00079 typedef FixedArray<bool,itkGetStaticConstMacro(ImageDimension)> FlipAxesArrayType; 00080 00083 itkSetMacro( FlipAxes, FlipAxesArrayType ); 00084 itkGetMacro( FlipAxes, FlipAxesArrayType ); 00085 00092 virtual void GenerateOutputInformation(); 00093 00099 virtual void GenerateInputRequestedRegion(); 00100 00101 protected: 00102 FlipImageFilter(); 00103 ~FlipImageFilter() {}; 00104 void PrintSelf(std::ostream& os, Indent indent) const; 00105 00116 void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, 00117 int threadId ); 00118 00119 private: 00120 FlipImageFilter(const Self&); //purposely not implemented 00121 void operator=(const Self&); //purposely not implemented 00122 00123 FlipAxesArrayType m_FlipAxes; 00124 00125 }; 00126 00127 } // end namespace itk 00128 00129 #ifndef ITK_MANUAL_INSTANTIATION 00130 #include "itkFlipImageFilter.txx" 00131 #endif 00132 00133 #endif 00134

Generated at Sun Apr 1 02:28:42 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000