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

itkChangeRegionLabelMapFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkChangeRegionLabelMapFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-07-21 22:17:01 $
00007   Version:   $Revision: 1.3 $
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   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkChangeRegionLabelMapFilter_h
00021 #define __itkChangeRegionLabelMapFilter_h
00022 
00023 #include "itkInPlaceLabelMapFilter.h"
00024 
00025 namespace itk
00026 {
00027   
00039 template <class TInputImage>
00040 class ITK_EXPORT ChangeRegionLabelMapFilter : public InPlaceLabelMapFilter<TInputImage>
00041 {
00042 public:
00044   typedef ChangeRegionLabelMapFilter          Self;
00045   typedef InPlaceLabelMapFilter<TInputImage>  Superclass;
00046   typedef SmartPointer<Self>                  Pointer;
00047   typedef SmartPointer<const Self>            ConstPointer;
00048 
00049   
00051   itkTypeMacro(ChangeRegionLabelMapFilter, InPlaceImageFilter);
00052 
00054   itkNewMacro(Self);  
00055 
00057   typedef typename Superclass::OutputImageType       OutputImageType;
00058   typedef typename Superclass::OutputImagePointer    OutputImagePointer;
00059   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00060   typedef typename Superclass::OutputImagePixelType  OutputImagePixelType;
00061 
00063   typedef TInputImage                              InputImageType;
00064   typedef typename InputImageType::Pointer         InputImagePointer;
00065   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00066   typedef typename InputImageType::RegionType      InputImageRegionType; 
00067   typedef typename InputImageType::PixelType       InputImagePixelType;
00068   typedef typename InputImageType::LabelObjectType LabelObjectType;
00069 
00070   typedef typename InputImageType::PixelType       PixelType;
00071   typedef typename InputImageType::IndexType       IndexType;
00072   typedef typename InputImageType::SizeType        SizeType;
00073   typedef typename InputImageType::RegionType      RegionType;
00074 
00075   typedef TInputImage TOutputImage;
00076   
00078   itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
00079   itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
00080   itkStaticConstMacro(ImageDimension, unsigned int, TOutputImage::ImageDimension);
00082 
00084   itkSetMacro(Region, OutputImageRegionType);
00085   itkGetConstReferenceMacro(Region, OutputImageRegionType);
00087 
00088 protected:
00089   ChangeRegionLabelMapFilter() {};
00090   ~ChangeRegionLabelMapFilter() {};
00091 
00092   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00093 
00094   virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
00095   
00096   void GenerateInputRequestedRegion();
00097 
00098   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00099 
00100   virtual void GenerateOutputInformation();
00101   
00102   void GenerateData();
00103 
00104 private:
00105   ChangeRegionLabelMapFilter(const Self&); //purposely not implemented
00106   void operator=(const Self&); //purposely not implemented
00107   
00108   OutputImageRegionType m_Region;
00109 
00110 };
00111 
00112 } // end namespace itk
00113 
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkChangeRegionLabelMapFilter.txx"
00116 #endif
00117 
00118 #endif
00119 

Generated at Fri Apr 16 18:04:26 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000