libcrn
3.9.5
A document image processing library
|
Cubic spline interpolation. More...
#include <CRNCubicSpline.h>
Public Types | |
enum | Extrapolation { Extrapolation::LINEAR, Extrapolation::CUBIC } |
Extrapolation modes. More... | |
Public Member Functions | |
template<typename Iter > | |
CubicSpline (Iter beg, Iter en) | |
Constructor from a list of points. More... | |
CubicSpline (const CubicSpline &)=default | |
CubicSpline (CubicSpline &&)=default | |
virtual | ~CubicSpline () override |
CubicSpline & | operator= (const CubicSpline &)=default |
CubicSpline & | operator= (CubicSpline &&)=default |
void | SetExtrapolationMode (Extrapolation ex) noexcept |
Sets the behaviour for points before the first control point and after the last control point. More... | |
virtual double | operator[] (double x) const override |
Gets ordinate at x. More... | |
const std::vector < crn::Point2DDouble > & | GetData () const noexcept |
Access to the sorted control point. More... | |
![]() | |
virtual | ~Cartesian2DFunction () override |
virtual int | operator[] (int x) const |
Gets ordinate at x. More... | |
![]() | |
virtual | ~Object ()=default |
Cubic spline interpolation.
Creates a cubic spline model representing a cloud of points.
Definition at line 40 of file CRNCubicSpline.h.
|
strong |
|
inline |
Constructor from a list of points.
crn::ExceptionDimension | not enough samples |
[in] | beg | the first element |
[in] | en | the element after the last |
Definition at line 51 of file CRNCubicSpline.h.
|
default |
|
default |
|
inlineoverridevirtual |
Definition at line 64 of file CRNCubicSpline.h.
|
inlinenoexcept |
Access to the sorted control point.
Definition at line 77 of file CRNCubicSpline.h.
|
default |
|
default |
|
overridevirtual |
Gets ordinate at x.
Implements crn::Cartesian2DFunction.
Definition at line 59 of file CRNCubicSpline.cpp.
|
inlinenoexcept |
Sets the behaviour for points before the first control point and after the last control point.
Definition at line 69 of file CRNCubicSpline.h.