ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkHConcaveImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkHConcaveImageFilter_h
00019 #define __itkHConcaveImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk
00024 {
00044 template< class TInputImage, class TOutputImage >
00045 class ITK_EXPORT HConcaveImageFilter:
00046   public ImageToImageFilter< TInputImage, TOutputImage >
00047 {
00048 public:
00050   typedef HConcaveImageFilter                             Self;
00051   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00052   typedef SmartPointer< Self >                            Pointer;
00053   typedef SmartPointer< const Self >                      ConstPointer;
00054 
00056   typedef TInputImage                            InputImageType;
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 TOutputImage                           OutputImageType;
00062   typedef typename OutputImageType::Pointer      OutputImagePointer;
00063   typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00064   typedef typename OutputImageType::RegionType   OutputImageRegionType;
00065   typedef typename OutputImageType::PixelType    OutputImagePixelType;
00066 
00068   itkStaticConstMacro(InputImageDimension, unsigned int,
00069                       TInputImage::ImageDimension);
00070   itkStaticConstMacro(OutputImageDimension, unsigned int,
00071                       TOutputImage::ImageDimension);
00073 
00075   itkNewMacro(Self);
00076 
00078   itkTypeMacro(HConcaveImageFilter,
00079                ImageToImageFilter);
00080 
00085   itkSetMacro(Height, InputImagePixelType);
00086   itkGetConstMacro(Height, InputImagePixelType);
00088 
00095   itkSetMacro(FullyConnected, bool);
00096   itkGetConstReferenceMacro(FullyConnected, bool);
00097   itkBooleanMacro(FullyConnected);
00099 
00100 #ifdef ITK_USE_CONCEPT_CHECKING
00101 
00102   itkConceptMacro( InputEqualityComparableCheck,
00103                    ( Concept::EqualityComparable< InputImagePixelType > ) );
00104   itkConceptMacro( IntConvertibleToInputCheck,
00105                    ( Concept::Convertible< int, InputImagePixelType > ) );
00106   itkConceptMacro( InputOStreamWritableCheck,
00107                    ( Concept::OStreamWritable< InputImagePixelType > ) );
00108 
00110 #endif
00111 protected:
00112   HConcaveImageFilter();
00113   ~HConcaveImageFilter() {}
00114   void PrintSelf(std::ostream & os, Indent indent) const;
00116 
00120   void GenerateInputRequestedRegion();
00121 
00123   void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
00124 
00127   void GenerateData();
00128 
00129 private:
00130   HConcaveImageFilter(const Self &); //purposely not implemented
00131   void operator=(const Self &);      //purposely not implemented
00132 
00133   InputImagePixelType m_Height;
00134   unsigned long       m_NumberOfIterationsUsed;
00135   bool                m_FullyConnected;
00136 }; // end of class
00137 } // end namespace itk
00138 
00139 #ifndef ITK_MANUAL_INSTANTIATION
00140 #include "itkHConcaveImageFilter.hxx"
00141 #endif
00142 
00143 #endif
00144