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: 2009-04-25 12:27:21 $
00007   Version:   $Revision: 1.9 $
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   itkGetConstMacro( FlipAxes, FlipAxesArrayType );
00086 
00091   itkBooleanMacro(FlipAboutOrigin);
00092   itkGetConstMacro(FlipAboutOrigin, bool);
00093   itkSetMacro(FlipAboutOrigin, bool);
00095 
00102   virtual void GenerateOutputInformation();
00103 
00109   virtual void GenerateInputRequestedRegion();
00110 
00111 protected:
00112   FlipImageFilter();
00113   ~FlipImageFilter() {};
00114   void PrintSelf(std::ostream& os, Indent indent) const;
00115 
00126   void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
00127                             int threadId );  
00128 
00129 private:
00130   FlipImageFilter(const Self&); //purposely not implemented
00131   void operator=(const Self&); //purposely not implemented
00132 
00133   FlipAxesArrayType       m_FlipAxes;
00134   bool                    m_FlipAboutOrigin;
00135 };
00136 
00137 } // end namespace itk
00138 
00139 #ifndef ITK_MANUAL_INSTANTIATION
00140 #include "itkFlipImageFilter.txx"
00141 #endif
00142   
00143 #endif
00144 

Generated at Tue Sep 15 02:58:45 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000