OTB  6.7.0
Orfeo Toolbox
otbWindowedSincInterpolateImageFunctionBase.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbWindowedSincInterpolateImageFunctionBase_h
22 #define otbWindowedSincInterpolateImageFunctionBase_h
23 
25 #include "itkSize.h"
26 #include "otbMath.h"
27 #include "vnl/vnl_math.h"
28 
29 namespace otb
30 {
139 template<class TInputImage, class TWindowFunction, class TBoundaryCondition =
140  itk::ZeroFluxNeumannBoundaryCondition<TInputImage>, class TCoordRep = double>
142  public GenericInterpolateImageFunction<TInputImage,
143  TWindowFunction,
144  TBoundaryCondition,
145  TCoordRep>
146 {
147 public:
148 
154 
157 
159  itkNewMacro(Self);
160 
164 
166  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);
167 
170  typedef typename Superclass::SizeType SizeType;
171  typedef typename Superclass::RealType RealType;
172  typedef typename Superclass::IteratorType IteratorType;
174  //typedef typename TWindowFunction FunctionType;
175  typedef typename Superclass::FunctionType FunctionType;
176  typedef typename std::vector<double> VectorType;
177 
179 // virtual void ComputeResampledWindowedSincProfil();
180 
181 protected:
184  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
185 
186 private:
188  void operator =(const Self&) = delete;
189 };
190 
191 } // end namespace itk
192 
193 #ifndef OTB_MANUAL_INSTANTIATION
195 #endif
196 
197 #endif
itk::Size< Monteverdi_DIMENSION > SizeType
Definition: mvdTypes.h:137
GenericInterpolateImageFunction< TInputImage, TWindowFunction, TBoundaryCondition, TCoordRep > Superclass
InputImageType::IndexType IndexType
Monteverdi_FLOATING_TYPE RealType
Definition: mvdTypes.h:84
TInputImage InputImageType
Generic interpolation of an otb::Image.