21 #ifndef otbWindowedSincInterpolateImageHammingFunction_h
22 #define otbWindowedSincInterpolateImageHammingFunction_h
25 #include "vnl/vnl_math.h"
40 template <
class TInput =
double,
class TOutput =
double>
64 double x =
static_cast<double>(A);
66 double temp = 0.54 + 0.46 * std::cos(x *
m_Factor);
67 return (x == 0.0) ?
static_cast<TOutput
>(temp) :
static_cast<TOutput
>(temp * std::sin(px) / px);
93 template <
class TInputImage,
class TBoundaryCondition = itk::ConstantBoundaryCondition<TInputImage>,
class TCoordRep =
double,
94 class TInputInterpolator =
double,
class TOutputInterpolator =
double>
97 TBoundaryCondition, TCoordRep>
104 TBoundaryCondition, TCoordRep>
120 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
134 void PrintSelf(std::ostream& os, itk::Indent indent)
const override
136 Superclass::PrintSelf(os, indent);
Window function for sinc interpolation.
void SetRadius(unsigned int radius)
unsigned int GetRadius() const
TOutput operator()(const TInput &A) const
Generic interpolation of an otb::Image.
Use the windowed sinc function to interpolate.
Use the WindowedSincInterpolateImageFunctionBase with a Hamming Function.
~WindowedSincInterpolateImageHammingFunction() override
Superclass::RealType RealType
Superclass::IteratorType IteratorType
WindowedSincInterpolateImageHammingFunction Self
itk::SmartPointer< const Self > ConstPointer
WindowedSincInterpolateImageHammingFunction(const Self &)=delete
itk::SmartPointer< Self > Pointer
Superclass::OutputType OutputType
WindowedSincInterpolateImageFunctionBase< TInputImage, typename Function::HammingWindowFunction< TInputInterpolator, TOutputInterpolator >, TBoundaryCondition, TCoordRep > Superclass
Superclass::IndexType IndexType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Superclass::ContinuousIndexType ContinuousIndexType
void operator=(const Self &)=delete
Superclass::InputImageType InputImageType
Superclass::SizeType SizeType
WindowedSincInterpolateImageHammingFunction()
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
constexpr double CONST_PI