mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Transformation by cubic convolution interpolation.
Uses the cubic convolution interpolation kernel. See https://en.wikipedia.org/wiki/Bicubic_interpolation .
The parameter cubic should be left as the default -0.5 in most cases, which gives the bicubic spline interpolator. See https://en.wikipedia.org/wiki/Cubic_Hermite_spline.
_arithT | is the type in which to do all calculations. Should be a floating point type. |
Definition at line 89 of file imageTransforms.hpp.
#include <improc/imageTransforms.hpp>
Public Types | |
typedef _arithT | arithT |
The type in which all calculations are performed. More... | |
Public Member Functions | |
cubicConvolTransform () | |
Default c'tor. More... | |
cubicConvolTransform (arithT c) | |
Construct setting the kernel parameter. More... | |
cubicConvolTransform (const cubicConvolTransform &t) | |
Copy c'tor. More... | |
arithT | cubicConvolKernel (arithT d) |
Calculate the kernel value for a given residual. More... | |
Public Attributes | |
arithT | cubic {-0.5} |
The kernel parameter. The default value -0.5 gives the bicubic spline interpolator. More... | |
typedef _arithT mx::improc::cubicConvolTransform< _arithT >::arithT |
The type in which all calculations are performed.
Definition at line 91 of file imageTransforms.hpp.
|
inline |
Default c'tor.
This will provide the bicubic spline interpolator
Definition at line 102 of file imageTransforms.hpp.
|
inlineexplicit |
Construct setting the kernel parameter.
[in] | c | [optiona] The kernel parameter. The default value -0.5 gives the bicubic spline interpolator. |
Definition at line 105 of file imageTransforms.hpp.
References mx::astro::constants::c(), and mx::improc::cubicConvolTransform< _arithT >::cubic.
|
inline |
Copy c'tor.
Definition at line 111 of file imageTransforms.hpp.
References mx::improc::cubicConvolTransform< _arithT >::cubic.
|
inline |
Calculate the kernel value for a given residual.
Definition at line 117 of file imageTransforms.hpp.
References mx::improc::cubicConvolTransform< _arithT >::cubic.
arithT mx::improc::cubicConvolTransform< _arithT >::cubic {-0.5} |
The kernel parameter. The default value -0.5 gives the bicubic spline interpolator.
Definition at line 96 of file imageTransforms.hpp.
Referenced by mx::improc::cubicConvolTransform< _arithT >::cubicConvolTransform(), and mx::improc::cubicConvolTransform< _arithT >::cubicConvolKernel().