ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkBSplineDownsampleImageFilter.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 __itkBSplineDownsampleImageFilter_h
00029 #define __itkBSplineDownsampleImageFilter_h
00030 
00031 // include .h for each ResamplerType
00032 #include "itkBSplineL2ResampleImageFilterBase.h"
00033 #include "itkBSplineCenteredL2ResampleImageFilterBase.h"
00034 
00035 namespace itk
00036 {
00086 //= typename BSplineResampleImageFilterBase<TInputImage, TOutputImage>
00087 template< class TInputImage, class TOutputImage,
00088           class ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage > >
00089 class ITK_EXPORT BSplineDownsampleImageFilter:
00090   public ResamplerType
00091 {
00092 public:
00094   typedef BSplineDownsampleImageFilter Self;
00095   typedef ResamplerType                Superclass;
00096   typedef SmartPointer< Self >         Pointer;
00097   typedef SmartPointer< const Self >   ConstPointer;
00098 
00100   itkTypeMacro(BSplineDownsampleImageFilter, ResamplerType);
00101 
00103   itkNewMacro(Self);
00104 
00106   typedef typename Superclass::InputImageType InputImageType;
00107 
00109   typedef typename Superclass::InputImagePointer InputImagePointer;
00110 
00112   typedef typename Superclass::OutputImagePointer OutputImagePointer;
00113 
00115   typedef typename Superclass::OutputImageIterator OutputImageIterator;
00116 
00119   void GenerateOutputInformation();
00120 
00122   void GenerateInputRequestedRegion();
00123 
00124 #ifdef ITK_USE_CONCEPT_CHECKING
00125 
00126   itkConceptMacro( DoubleConvertibleToOutputCheck,
00127                    ( Concept::Convertible< double, typename TOutputImage::PixelType > ) );
00128 
00130 #endif
00131 protected:
00132 
00133   void GenerateData();
00134 
00135   void EnlargeOutputRequestedRegion(DataObject *output);
00136 
00137   BSplineDownsampleImageFilter();
00138   virtual ~BSplineDownsampleImageFilter() {}
00139 private:
00140   BSplineDownsampleImageFilter(const Self &); //purposely not implemented
00141   void operator=(const Self &);               //purposely not implemented
00142 };
00143 } // namespace itk
00144 
00145 #ifndef ITK_MANUAL_INSTANTIATION
00146 #include "itkBSplineDownsampleImageFilter.hxx"
00147 #endif
00148 
00149 #endif
00150