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

itkBoxImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBoxImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 18:14:36 $
00007   Version:   $Revision: 1.2 $
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 
00018 #ifndef __itkBoxImageFilter_h
00019 #define __itkBoxImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 #include "itkCastImageFilter.h"
00023 
00024 
00025 namespace itk {
00026 
00039 template<class TInputImage, class TOutputImage>
00040 class ITK_EXPORT BoxImageFilter : 
00041 public ImageToImageFilter<TInputImage, TOutputImage>
00042 {
00043 public:
00045   typedef BoxImageFilter                                Self;
00046   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00047   typedef SmartPointer<Self>                            Pointer;
00048   typedef SmartPointer<const Self>                      ConstPointer;
00049 
00051   itkNewMacro(Self);
00052 
00054   itkTypeMacro(BoxImageFilter,
00055                ImageToImageFilter);
00056 
00058   typedef TInputImage                       InputImageType;
00059   typedef typename TInputImage::RegionType  RegionType;
00060   typedef typename TInputImage::SizeType    SizeType;
00061   typedef typename TInputImage::IndexType   IndexType;
00062   typedef typename TInputImage::OffsetType  OffsetType;
00063 
00064   typedef typename TInputImage::PixelType   InputPixelType;
00065   
00066   typedef TOutputImage                      OutputImageType;
00067   typedef typename TOutputImage::PixelType  OutputPixelType;
00068 
00070   itkStaticConstMacro(ImageDimension, unsigned int,
00071                       TInputImage::ImageDimension);
00072 
00074   typedef typename TInputImage::SizeType RadiusType;
00075 
00076   virtual void SetRadius( const RadiusType & radius );
00077   virtual void SetRadius( const unsigned long & radius );
00078   itkGetConstReferenceMacro(Radius, RadiusType);
00079 
00080   void GenerateInputRequestedRegion();
00081 
00082 protected:
00083   BoxImageFilter();
00084   ~BoxImageFilter() {};
00085 
00086   void PrintSelf(std::ostream& os, Indent indent) const;
00087 
00088 private:
00089   BoxImageFilter(const Self&); //purposely not implemented
00090   void operator=(const Self&); //purposely not implemented
00091 
00092   RadiusType m_Radius;
00093 
00094 };
00095 
00096 }
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099 #include "itkBoxImageFilter.txx"
00100 #endif
00101 
00102 #endif
00103 

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