|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbWindowedSincInterpolateImageWelchFunction_h
22 #define otbWindowedSincInterpolateImageWelchFunction_h
25 #include "vnl/vnl_math.h"
40 template <
class TInput =
double,
class TOutput =
double>
50 m_Factor = 1 /
static_cast<double>(radius * radius);
64 double x =
static_cast<double>(A);
66 double temp = 1.0 - x *
m_Factor * x;
67 return (x == 0.0) ?
static_cast<TOutput
>(temp) :
static_cast<TOutput
>(temp * std::sin(px) / px);
92 template <
class TInputImage,
class TBoundaryCondition = itk::ConstantBoundaryCondition<TInputImage>,
class TCoordRep =
double,
93 class TInputInterpolator =
double,
class TOutputInterpolator =
double>
96 TBoundaryCondition, TCoordRep>
103 TBoundaryCondition, TCoordRep>
119 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
133 void PrintSelf(std::ostream& os, itk::Indent indent)
const override
135 Superclass::PrintSelf(os, indent);
140 void operator=(
const Self&) =
delete;
Superclass::IndexType IndexType
itk::SmartPointer< Self > Pointer
Superclass::InputImageType InputImageType
constexpr double CONST_PI
~WindowedSincInterpolateImageWelchFunction() override
Superclass::IndexType IndexType
Superclass::SizeType SizeType
Superclass::RealType RealType
Superclass::ContinuousIndexType ContinuousIndexType
Use the WindowedSincInterpolateImageFunctionBase with a Welch Function.
Superclass::OutputType OutputType
WindowedSincInterpolateImageWelchFunction()
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
itk::SmartPointer< const Self > ConstPointer
Window function for sinc interpolation.
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Superclass::OutputType OutputType
Superclass::IteratorType IteratorType
Superclass::InputImageType InputImageType
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::SizeType SizeType
unsigned int GetRadius() const
Superclass::IteratorType IteratorType
WindowedSincInterpolateImageFunctionBase< TInputImage, typename Function::WelchWindowFunction< TInputInterpolator, TOutputInterpolator >, TBoundaryCondition, TCoordRep > Superclass
WindowedSincInterpolateImageWelchFunction Self
Superclass::RealType RealType
Use the windowed sinc function to interpolate.
void SetRadius(unsigned int radius)
TOutput operator()(const TInput &A) const