21 #ifndef otbWindowedSincInterpolateImageBlackmanFunction_h
22 #define otbWindowedSincInterpolateImageBlackmanFunction_h
25 #include "vnl/vnl_math.h"
40 template <
class TInput =
double,
class TOutput =
double>
69 double x =
static_cast<double>(A);
72 return (x == 0.0) ?
static_cast<TOutput
>(temp) :
static_cast<TOutput
>(temp * std::sin(px) / px);
99 template <
class TInputImage,
class TBoundaryCondition = itk::ConstantBoundaryCondition<TInputImage>,
class TCoordRep =
double,
100 class TInputInterpolator =
double,
class TOutputInterpolator =
double>
103 TBoundaryCondition, TCoordRep>
110 TBoundaryCondition, TCoordRep>
126 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
140 void PrintSelf(std::ostream& os, itk::Indent indent)
const override
142 Superclass::PrintSelf(os, indent);
Window function for sinc interpolation.
unsigned int GetRadius() const
TOutput operator()(const TInput &A) const
void SetRadius(unsigned int radius)
Generic interpolation of an otb::Image.
Use the WindowedSincInterpolateImageFunctionBase with a Blackman Function.
~WindowedSincInterpolateImageBlackmanFunction() override
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::IndexType IndexType
Superclass::RealType RealType
WindowedSincInterpolateImageBlackmanFunction(const Self &)=delete
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::SmartPointer< Self > Pointer
void operator=(const Self &)=delete
Superclass::InputImageType InputImageType
WindowedSincInterpolateImageBlackmanFunction Self
WindowedSincInterpolateImageBlackmanFunction()
Superclass::IteratorType IteratorType
Superclass::OutputType OutputType
Superclass::SizeType SizeType
itk::SmartPointer< const Self > ConstPointer
WindowedSincInterpolateImageFunctionBase< TInputImage, typename Function::BlackmanWindowFunction< TInputInterpolator, TOutputInterpolator >, TBoundaryCondition, TCoordRep > Superclass
Use the windowed sinc function to interpolate.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
constexpr double CONST_PI