ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkBSplineCenteredResampleImageFilterBase_h 00029 #define __itkBSplineCenteredResampleImageFilterBase_h 00030 00031 #include "itkBSplineResampleImageFilterBase.h" 00032 #include <vector> 00033 00034 namespace itk 00035 { 00036 00037 class ProgressReporter; 00038 00064 template< class TInputImage, class TOutputImage > 00065 class ITK_EXPORT BSplineCenteredResampleImageFilterBase: 00066 public BSplineResampleImageFilterBase< TInputImage, TOutputImage > 00067 { 00068 public: 00070 typedef BSplineCenteredResampleImageFilterBase Self; 00071 typedef BSplineResampleImageFilterBase< TInputImage, TOutputImage > Superclass; 00072 typedef SmartPointer< Self > Pointer; 00073 typedef SmartPointer< const Self > ConstPointer; 00074 00076 itkTypeMacro(BSplineCenteredResampleImageFilterBase, BSplineResampleImageFilterBase); 00077 00079 itkNewMacro(Self); 00080 00082 typedef typename Superclass::OutputImagePixelType OutputImagePixelType; 00083 00085 typedef typename Superclass::OutputImageIterator OutputImageIterator; 00086 protected: 00087 00088 virtual void InitializePyramidSplineFilter(int SplineOrder); 00089 00090 virtual void Reduce1DImage( 00091 const std::vector< double > & In, 00092 OutputImageIterator & Iter, 00093 unsigned int traverseSize, 00094 ProgressReporter & progress 00095 ); 00096 00097 virtual void Expand1DImage( 00098 const std::vector< double > & In, 00099 OutputImageIterator & Iter, 00100 unsigned int traverseSize, 00101 ProgressReporter & progress 00102 ); 00103 00104 protected: 00105 BSplineCenteredResampleImageFilterBase(); 00106 virtual ~BSplineCenteredResampleImageFilterBase() {} 00107 void PrintSelf(std::ostream & os, Indent indent) const; 00108 00109 private: 00110 BSplineCenteredResampleImageFilterBase(const Self &); //purposely not 00111 // implemented 00112 void operator=(const Self &); //purposely not 00113 00114 typedef typename TInputImage::IndexValueType IndexValueType; 00115 typedef typename TInputImage::SizeValueType SizeValueType; 00116 00117 // implemented 00118 }; 00119 } // namespace itk 00120 00121 #ifndef ITK_MANUAL_INSTANTIATION 00122 #include "itkBSplineCenteredResampleImageFilterBase.hxx" 00123 #endif 00124 00125 #endif 00126