18 #ifndef __otbWindowedSincInterpolateImageHammingFunction_h
19 #define __otbWindowedSincInterpolateImageHammingFunction_h
24 #include "vnl/vnl_math.h"
37 template<
class TInput =
double,
class TOutput =
double>
57 double x =
static_cast<double>(A);
59 double temp = 0.54 + 0.46 * vcl_cos(x *
m_Factor);
60 return (x == 0.0) ?
static_cast<TOutput
>(temp) : static_cast<TOutput>(temp * vcl_sin(px) / px);
83 template<
class TInputImage,
class TBoundaryCondition = itk::ConstantBoundaryCondition<TInputImage>,
class TCoordRep =
84 double,
class TInputInterpolator =
double,
class TOutputInterpolator =
double>
87 typename Function::HammingWindowFunction<TInputInterpolator,
115 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
129 Superclass::PrintSelf(os, indent);
134 void operator =(
const Self&);