|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
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);
141 void operator=(
const Self&) =
delete;
unsigned int GetRadius() const
WindowedSincInterpolateImageHammingFunction Self
Superclass::InputImageType InputImageType
constexpr double CONST_PI
Superclass::InputImageType InputImageType
Superclass::IndexType IndexType
WindowedSincInterpolateImageFunctionBase< TInputImage, typename Function::HammingWindowFunction< TInputInterpolator, TOutputInterpolator >, TBoundaryCondition, TCoordRep > Superclass
TOutput operator()(const TInput &A) const
Superclass::SizeType SizeType
void SetRadius(unsigned int radius)
Superclass::RealType RealType
Superclass::RealType RealType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::OutputType OutputType
Superclass::SizeType SizeType
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::IteratorType IteratorType
~WindowedSincInterpolateImageHammingFunction() override
Use the WindowedSincInterpolateImageFunctionBase with a Hamming Function.
itk::SmartPointer< const Self > ConstPointer
Superclass::OutputType OutputType
Window function for sinc interpolation.
itk::SmartPointer< Self > Pointer
Superclass::IndexType IndexType
WindowedSincInterpolateImageHammingFunction()
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Use the windowed sinc function to interpolate.
Superclass::IteratorType IteratorType