40 [[nodiscard]]
auto size() const -> std::
size_t;
43 [[nodiscard]] auto
points() const -> const std::vector<Voxel>&;
49 [[nodiscard]] auto
eval(
double t) const -> Pixel;
62 auto
resample(
double resamplePerc = 1.0) -> std::vector<Voxel>;
65 [[nodiscard]] auto
sample(std::
size_t numPoints) const
66 -> std::vector<Voxel>;
69 auto operator()(
int index) const -> Voxel;
75 [[nodiscard]] auto
curvature(
int hstep = 1) const -> std::vector<
double>;
86 std::vector<double>
ts_;
Fits a curve to a set of points for resampling.
auto evenlySpacePoints() -> std::vector< Voxel >
Evenly resample the curve with the same number of points as the input set.
auto points() const -> const std::vector< Voxel > &
Return the current list of resampled points.
auto size() const -> std::size_t
Return the current number of resampled points in the spline.
auto resample(double resamplePerc=1.0) -> std::vector< Voxel >
Resamples the curve at a t-interval of resamplePerc.
auto spline() const -> const Spline &
Return the spline created from the input points.
auto sample(std::size_t numPoints) const -> std::vector< Voxel >
Sample the curve into numPoints of evenly spaced points.
std::vector< double > ts_
auto curvature(int hstep=1) const -> std::vector< double >
Calculate the local curvature along the spline.
FittedCurve(const std::vector< Voxel > &vs, int zIndex)
Construct curve from set of points and z-Index.
std::vector< Voxel > points_
auto eval(double t) const -> Pixel
Resample the curve at a given t-value in [0.0, 1.0].
auto arclength() const -> double
Calculate the arc length of the curve
Segmentation algorithms and utilities library