|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbWindowedSincInterpolateImageCosineFunction_h
22 #define otbWindowedSincInterpolateImageCosineFunction_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 = std::cos(x *
m_Factor);
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;
WindowedSincInterpolateImageCosineFunction()
Superclass::InputImageType InputImageType
constexpr double CONST_PI
Superclass::IndexType IndexType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::SmartPointer< const Self > ConstPointer
Superclass::SizeType SizeType
Superclass::RealType RealType
Superclass::ContinuousIndexType ContinuousIndexType
Superclass::SizeType SizeType
TOutput operator()(const TInput &A) const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
unsigned int GetRadius() const
Superclass::IteratorType IteratorType
Superclass::OutputType OutputType
WindowedSincInterpolateImageFunctionBase< TInputImage, typename Function::CosineWindowFunction< TInputInterpolator, TOutputInterpolator >, TBoundaryCondition, TCoordRep > Superclass
Superclass::ContinuousIndexType ContinuousIndexType
Use the WindowedSincInterpolateImageFunctionBase with a Cosine Function.
Superclass::IteratorType IteratorType
void SetRadius(unsigned int radius)
~WindowedSincInterpolateImageCosineFunction() override
Superclass::IndexType IndexType
WindowedSincInterpolateImageCosineFunction Self
itk::SmartPointer< Self > Pointer
Superclass::InputImageType InputImageType
Superclass::OutputType OutputType
Use the windowed sinc function to interpolate.
Superclass::RealType RealType