|
Volume Cartographer 2.28.0
|
Simple spline wrapper around Eigen::Spline. More...
#include <vc/segmentation/lrps/Spline.hpp>
Public Types | |
| using | ScalarVector = std::vector< Scalar > |
| using | SplineType = Eigen::Spline< Scalar, 2 > |
Public Member Functions | |
| Spline (const ScalarVector &xs, const ScalarVector &ys) | |
| Construct a spline by fitting to a set of points. More... | |
| Pixel | operator() (Scalar t) const |
| Spline evaluation at t-space value t in [0, 1] More... | |
Private Member Functions | |
| Eigen::MatrixXd | make_wide_matrix_ (const ScalarVector &xs, const ScalarVector &ys) |
| Combine X and Y values into an npoints_ x 2 matrix. More... | |
Private Attributes | |
| std::size_t | npoints_ |
| SplineType | spline_ |
Simple spline wrapper around Eigen::Spline.
Definition at line 22 of file Spline.hpp.
| using volcart::segmentation::Spline< Scalar, Degree >::ScalarVector = std::vector<Scalar> |
Definition at line 25 of file Spline.hpp.
| using volcart::segmentation::Spline< Scalar, Degree >::SplineType = Eigen::Spline<Scalar, 2> |
Definition at line 26 of file Spline.hpp.
|
inline |
Construct a spline by fitting to a set of points.
| xs | Vector of X values |
| ys | Vector of Y values |
Definition at line 36 of file Spline.hpp.
|
inlineprivate |
Combine X and Y values into an npoints_ x 2 matrix.
Definition at line 62 of file Spline.hpp.
|
inline |
Spline evaluation at t-space value t in [0, 1]
Definition at line 46 of file Spline.hpp.
|
private |
Number of points on the spline
Definition at line 55 of file Spline.hpp.
|
private |
Definition at line 57 of file Spline.hpp.