ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkWrapPadImageFilter.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 __itkWrapPadImageFilter_h
00019 #define __itkWrapPadImageFilter_h
00020 
00021 #include "itkPadImageFilter.h"
00022 
00023 #include "itkPeriodicBoundaryCondition.h"
00024 
00025 namespace itk
00026 {
00052 template< class TInputImage, class TOutputImage >
00053 class ITK_EXPORT WrapPadImageFilter:
00054   public PadImageFilter< TInputImage, TOutputImage >
00055 {
00056 public:
00058   typedef WrapPadImageFilter                          Self;
00059   typedef PadImageFilter< TInputImage, TOutputImage > Superclass;
00060   typedef SmartPointer< Self >                        Pointer;
00061   typedef SmartPointer< const Self >                  ConstPointer;
00062 
00064   itkNewMacro(Self);
00065 
00067   itkTypeMacro(WrapPadImageFilter, PadImageFilter);
00068 
00069   typedef typename Superclass::InputImageType         InputImageType;
00070   typedef typename Superclass::OutputImageType        OutputImageType;
00071   typedef typename Superclass::InputImagePointer      InputImagePointer;
00072   typedef typename Superclass::OutputImagePointer     OutputImagePointer;
00073   typedef typename Superclass::InputImageConstPointer InputImageConstPointer;
00074 
00076   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00077   typedef typename Superclass::InputImageRegionType  InputImageRegionType;
00078 
00080   typedef typename Superclass::OutputImagePixelType OutputImagePixelType;
00081   typedef typename Superclass::InputImagePixelType  InputImagePixelType;
00082 
00084   typedef typename Superclass::OutputImageIndexType OutputImageIndexType;
00085   typedef typename Superclass::InputImageIndexType  InputImageIndexType;
00086   typedef typename Superclass::OutputImageSizeType  OutputImageSizeType;
00087   typedef typename Superclass::InputImageSizeType   InputImageSizeType;
00088 
00090   itkStaticConstMacro(ImageDimension, unsigned int,
00091                       TInputImage::ImageDimension);
00092 
00093 #ifdef ITK_USE_CONCEPT_CHECKING
00094 
00095   itkConceptMacro( InputConvertibleToOutputCheck,
00096                    ( Concept::Convertible< InputImagePixelType, OutputImagePixelType > ) );
00097 
00099 #endif
00100 protected:
00101   WrapPadImageFilter();
00102   ~WrapPadImageFilter() {}
00103 
00104 private:
00105   WrapPadImageFilter(const Self &); //purposely not implemented
00106   void operator=(const Self &);     //purposely not implemented
00107 
00108   PeriodicBoundaryCondition< TInputImage, TOutputImage > m_InternalBoundaryCondition;
00109 };
00110 } // end namespace itk
00111 
00112 #ifndef ITK_MANUAL_INSTANTIATION
00113 #include "itkWrapPadImageFilter.hxx"
00114 #endif
00115 
00116 #endif
00117