ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkBSplineUpsampleImageFilter.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 /*=========================================================================
00019  *
00020  *  Portions of this file are subject to the VTK Toolkit Version 3 copyright.
00021  *
00022  *  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00023  *
00024  *  For complete copyright, license and disclaimer of warranty information
00025  *  please refer to the NOTICE file at the top of the ITK source tree.
00026  *
00027  *=========================================================================*/
00028 #ifndef __itkBSplineUpsampleImageFilter_h
00029 #define __itkBSplineUpsampleImageFilter_h
00030 
00031 // include .h for each ResamplerType
00032 #include "itkBSplineL2ResampleImageFilterBase.h"
00033 #include "itkBSplineCenteredL2ResampleImageFilterBase.h"
00034 
00035 namespace itk
00036 {
00082 template< class TInputImage, class TOutputImage, class ResamplerType =
00083             BSplineResampleImageFilterBase< TInputImage, TOutputImage > >
00084 class ITK_EXPORT BSplineUpsampleImageFilter:
00085   public ResamplerType
00086 {
00087 public:
00089   typedef BSplineUpsampleImageFilter Self;
00090   typedef ResamplerType              Superclass;
00091   typedef SmartPointer< Self >       Pointer;
00092   typedef SmartPointer< const Self > ConstPointer;
00093 
00095   itkTypeMacro(BSplineUpsampleImageFilter, ReamplerType);
00096 
00098   itkNewMacro(Self);
00099 
00101   typedef typename Superclass::InputImageType InputImageType;
00102 
00104   typedef typename Superclass::InputImagePointer InputImagePointer;
00105 
00107   typedef typename Superclass::OutputImageIterator OutputImageIterator;
00108 
00110   typedef typename Superclass::OutputImagePointer OutputImagePointer;
00111 
00114   void GenerateOutputInformation();
00115 
00117   void GenerateInputRequestedRegion();
00118 
00119 #ifdef ITK_USE_CONCEPT_CHECKING
00120 
00121   itkConceptMacro( DoubleConvertibleToOutputCheck,
00122                    ( Concept::Convertible< double, typename TOutputImage::PixelType > ) );
00123 
00125 #endif
00126 protected:
00127 
00128   void GenerateData();
00129 
00130   void EnlargeOutputRequestedRegion(DataObject *output);
00131 
00132   BSplineUpsampleImageFilter();
00133   virtual ~BSplineUpsampleImageFilter() {}
00134   void PrintSelf(std::ostream & os, Indent indent) const;
00135 
00136 private:
00137   BSplineUpsampleImageFilter(const Self &); //purposely not implemented
00138   void operator=(const Self &);             //purposely not implemented
00139 };
00140 } // namespace itk
00141 
00142 #ifndef ITK_MANUAL_INSTANTIATION
00143 #include "itkBSplineUpsampleImageFilter.hxx"
00144 #endif
00145 
00146 #endif
00147