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

itkHConcaveImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkHConcaveImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-16 16:45:09 $
00007   Version:   $Revision: 1.8 $
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 __itkHConcaveImageFilter_h
00018 #define __itkHConcaveImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00042 template<class TInputImage, class TOutputImage>
00043 class ITK_EXPORT HConcaveImageFilter : 
00044     public ImageToImageFilter<TInputImage, TOutputImage>
00045 {
00046 public:
00048   typedef HConcaveImageFilter       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 typename InputImageType::Pointer         InputImagePointer;
00057   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00058   typedef typename InputImageType::RegionType      InputImageRegionType;
00059   typedef typename InputImageType::PixelType       InputImagePixelType;
00060   typedef TOutputImage                             OutputImageType;
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);
00072 
00074   itkNewMacro(Self);  
00075 
00077   itkTypeMacro(HConcaveImageFilter, 
00078                ImageToImageFilter);
00079 
00084   itkSetMacro(Height, InputImagePixelType);
00085   itkGetMacro(Height, InputImagePixelType);
00087 
00092   unsigned long GetNumberOfIterationsUsed()
00093     { 
00094     itkLegacyBodyMacro(itk::HConcaveImageFilter::GetNumberOfIterationsUsed, 2.2);
00095     return m_NumberOfIterationsUsed; 
00096     };
00098 
00105   itkSetMacro(FullyConnected, bool);
00106   itkGetConstReferenceMacro(FullyConnected, bool);
00107   itkBooleanMacro(FullyConnected);
00109 
00110 #ifdef ITK_USE_CONCEPT_CHECKING
00111 
00112   itkConceptMacro(InputEqualityComparableCheck,
00113     (Concept::EqualityComparable<InputImagePixelType>));
00114   itkConceptMacro(IntConvertibleToInputCheck,
00115     (Concept::Convertible<int, InputImagePixelType>));
00116   itkConceptMacro(InputOStreamWritableCheck,
00117     (Concept::OStreamWritable<InputImagePixelType>));
00118 
00120 #endif
00121 
00122 protected:
00123   HConcaveImageFilter();
00124   ~HConcaveImageFilter() {};
00125   void PrintSelf(std::ostream& os, Indent indent) const;
00126 
00130   void GenerateInputRequestedRegion();
00131 
00133   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00134 
00137   void GenerateData();
00138 
00139 
00140 private:
00141   HConcaveImageFilter(const Self&); //purposely not implemented
00142   void operator=(const Self&); //purposely not implemented
00143 
00144   InputImagePixelType m_Height;
00145   unsigned long       m_NumberOfIterationsUsed;
00146   bool                m_FullyConnected;
00147 }; // end of class
00148 
00149 } // end namespace itk
00150   
00151 #ifndef ITK_MANUAL_INSTANTIATION
00152 #include "itkHConcaveImageFilter.txx"
00153 #endif
00154 
00155 #endif
00156 

Generated at Wed Nov 5 21:47:50 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000