ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkZeroFluxNeumannPadImageFilter.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 __itkZeroFluxNeumannPadImageFilter_h
00019 #define __itkZeroFluxNeumannPadImageFilter_h
00020 
00021 #include "itkPadImageFilter.h"
00022 
00023 #include "itkZeroFluxNeumannBoundaryCondition.h"
00024 
00025 namespace itk
00026 {
00027 
00060 template< class TInputImage, class TOutputImage >
00061 class ITK_EXPORT ZeroFluxNeumannPadImageFilter :
00062     public PadImageFilter< TInputImage, TOutputImage >
00063 {
00064 public:
00066   typedef ZeroFluxNeumannPadImageFilter              Self;
00067   typedef PadImageFilter<TInputImage, TOutputImage>  Superclass;
00068   typedef SmartPointer<Self>                         Pointer;
00069   typedef SmartPointer<const Self>                   ConstPointer;
00070 
00072   itkNewMacro(Self);
00073 
00075   itkTypeMacro(ZeroFluxNeumannPadImageFilter, PadImageFilter);
00076 
00078   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00079   typedef typename Superclass::InputImageRegionType  InputImageRegionType;
00080   typedef typename Superclass::InputImageRegionType  RegionType;
00081 
00083   typedef typename Superclass::OutputImagePixelType  OutputImagePixelType;
00084   typedef typename Superclass::InputImagePixelType   InputImagePixelType;
00085 
00087   typedef typename Superclass::OutputImageIndexType  OutputImageIndexType;
00088   typedef typename Superclass::InputImageIndexType   InputImageIndexType;
00089   typedef typename Superclass::OutputImageSizeType   OutputImageSizeType;
00090   typedef typename Superclass::InputImageSizeType    InputImageSizeType;
00091   typedef typename Superclass::InputImageIndexType   IndexType;
00092   typedef typename Superclass::InputImageSizeType    SizeType;
00093 
00095   itkStaticConstMacro(ImageDimension, unsigned int,
00096                       TInputImage::ImageDimension);
00097   itkStaticConstMacro(OutputImageDimension, unsigned int,
00098                       TOutputImage::ImageDimension);
00100 
00101 #ifdef ITK_USE_CONCEPT_CHECKING
00102 
00103   itkConceptMacro(OutputEqualityComparableCheck,
00104     (Concept::EqualityComparable< OutputImagePixelType >));
00105   itkConceptMacro(InputConvertibleToOutputCheck,
00106     (Concept::Convertible< InputImagePixelType, OutputImagePixelType >));
00107   itkConceptMacro(SameDimensionCheck,
00108     (Concept::SameDimension< ImageDimension, OutputImageDimension >));
00109   itkConceptMacro(OutputOStreamWritableCheck,
00110     (Concept::OStreamWritable< OutputImagePixelType >));
00111 
00113 #endif
00114 
00115 protected:
00116   ZeroFluxNeumannPadImageFilter();
00117   ~ZeroFluxNeumannPadImageFilter() {};
00118 
00119 private:
00120   ZeroFluxNeumannPadImageFilter(const Self&); //purposely not implemented
00121   void operator=(const Self&); //purposely not implemented
00122 
00123   ZeroFluxNeumannBoundaryCondition< TInputImage, TOutputImage > m_InternalBoundaryCondition;
00124 };
00125 } // end namespace itk
00126 
00127 #ifndef ITK_MANUAL_INSTANTIATION
00128 #include "itkZeroFluxNeumannPadImageFilter.hxx"
00129 #endif
00130 
00131 #endif
00132