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

itkHConvexImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkHConvexImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:09:03 $
00007   Version:   $Revision: 1.4 $
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 __itkHConvexImageFilter_h
00018 #define __itkHConvexImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00042 template<class TInputImage, class TOutputImage>
00043 class ITK_EXPORT HConvexImageFilter : 
00044     public ImageToImageFilter<TInputImage, TOutputImage>
00045 {
00046 public:
00048   typedef HConvexImageFilter Self;
00049   typedef ImageToImageFilter<TInputImage, TOutputImage>
00050   Superclass;
00051   typedef SmartPointer<Self>        Pointer;
00052   typedef SmartPointer<const Self>  ConstPointer;
00053 
00055   typedef TInputImage InputImageType;
00056   typedef TOutputImage OutputImageType;
00057   typedef typename InputImageType::Pointer         InputImagePointer;
00058   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00059   typedef typename InputImageType::RegionType      InputImageRegionType;
00060   typedef typename InputImageType::PixelType       InputImagePixelType;
00061   typedef typename OutputImageType::Pointer        OutputImagePointer;
00062   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00063   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00064   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00065   
00067   itkStaticConstMacro(InputImageDimension, unsigned int,
00068                       TInputImage::ImageDimension);
00069   itkStaticConstMacro(OutputImageDimension, unsigned int,
00070                       TOutputImage::ImageDimension);
00071 
00073   itkNewMacro(Self);  
00074 
00076   itkTypeMacro(HConvexImageFilter, 
00077                ImageToImageFilter);
00078 
00083   itkSetMacro(Height, InputImagePixelType);
00084   itkGetMacro(Height, InputImagePixelType);
00085   
00090   unsigned long GetNumberOfIterationsUsed()
00091     { itkLegacyBody(itk::HConvexImageFilter::GetNumberOfIterationsUsed, 2.2);
00092       return m_NumberOfIterationsUsed; };
00093 
00100   itkSetMacro(FullyConnected, bool);
00101   itkGetConstReferenceMacro(FullyConnected, bool);
00102   itkBooleanMacro(FullyConnected);
00103   
00104 protected:
00105   HConvexImageFilter();
00106   ~HConvexImageFilter() {};
00107   void PrintSelf(std::ostream& os, Indent indent) const;
00108 
00112   void GenerateInputRequestedRegion() ;
00113 
00115   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00116   
00119   void GenerateData();
00120   
00121 
00122 private:
00123   HConvexImageFilter(const Self&); //purposely not implemented
00124   void operator=(const Self&); //purposely not implemented
00125 
00126   InputImagePixelType m_Height;
00127   unsigned long m_NumberOfIterationsUsed;
00128   bool                m_FullyConnected;
00129 } ; // end of class
00130 
00131 } // end namespace itk
00132   
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkHConvexImageFilter.txx"
00135 #endif
00136 
00137 #endif
00138 
00139 

Generated at Wed May 24 23:15:27 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000