48 #include <visp3/core/vpBSpline.h> 49 #include <visp3/core/vpImagePoint.h> 50 #include <visp3/core/vpList.h> 51 #include <visp3/core/vpMath.h> 52 #include <visp3/core/vpMatrix.h> 53 #include <visp3/me/vpMeSite.h> 105 std::vector<double> &l_knots, std::vector<vpImagePoint> &l_controlPoints,
106 std::vector<double> &l_weights);
123 for (
unsigned int i = 0; i < weights.size(); i++)
124 list.push_back(*(&(weights[0]) + i));
135 for (std::list<double>::const_iterator it = list.begin(); it != list.end(); ++it) {
136 weights.push_back(*it);
141 std::vector<vpImagePoint> &l_controlPoints, std::vector<double> &l_weights);
144 static vpImagePoint *computeCurveDersPoint(
double l_u,
unsigned int l_i,
unsigned int l_p,
unsigned int l_der,
145 std::vector<double> &l_knots, std::vector<vpImagePoint> &l_controlPoints,
146 std::vector<double> &l_weights);
147 vpImagePoint *computeCurveDersPoint(
double u,
unsigned int der);
149 static void curveKnotIns(
double l_u,
unsigned int l_k,
unsigned int l_s,
unsigned int l_r,
unsigned int l_p,
150 std::vector<double> &l_knots, std::vector<vpImagePoint> &l_controlPoints,
151 std::vector<double> &l_weights);
152 void curveKnotIns(
double u,
unsigned int s = 0,
unsigned int r = 1);
154 static void refineKnotVectCurve(
double *l_x,
unsigned int l_r,
unsigned int l_p, std::vector<double> &l_knots,
155 std::vector<vpImagePoint> &l_controlPoints, std::vector<double> &l_weights);
156 void refineKnotVectCurve(
double *x,
unsigned int r);
158 static unsigned int removeCurveKnot(
double l_u,
unsigned int l_r,
unsigned int l_num,
double l_TOL,
unsigned int l_s,
159 unsigned int l_p, std::vector<double> &l_knots,
160 std::vector<vpImagePoint> &l_controlPoints, std::vector<double> &l_weights);
161 unsigned int removeCurveKnot(
double l_u,
unsigned int l_r,
unsigned int l_num,
double l_TOL);
163 static void globalCurveInterp(std::vector<vpImagePoint> &l_crossingPoints,
unsigned int l_p,
164 std::vector<double> &l_knots, std::vector<vpImagePoint> &l_controlPoints,
165 std::vector<double> &l_weights);
167 void globalCurveInterp(
const std::list<vpImagePoint> &l_crossingPoints);
168 void globalCurveInterp(
const std::list<vpMeSite> &l_crossingPoints);
169 void globalCurveInterp();
171 static void globalCurveApprox(std::vector<vpImagePoint> &l_crossingPoints,
unsigned int l_p,
unsigned int l_n,
172 std::vector<double> &l_knots, std::vector<vpImagePoint> &l_controlPoints,
173 std::vector<double> &l_weights);
175 void globalCurveApprox(
const std::list<vpImagePoint> &l_crossingPoints,
unsigned int n);
176 void globalCurveApprox(
const std::list<vpMeSite> &l_crossingPoints,
unsigned int n);
177 void globalCurveApprox(
unsigned int n);
static vpImagePoint * computeCurveDers(double l_u, unsigned int l_i, unsigned int l_p, unsigned int l_der, std::vector< double > &l_knots, std::vector< vpImagePoint > &l_controlPoints)
Implementation of a matrix and operations on matrices.
Provide simple list management.
void get_weights(std::list< double > &list) const
Class that provides tools to compute and manipulate a B-Spline curve.
std::vector< double > weights
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void set_weights(const std::list< double > &list)
Class that provides tools to compute and manipulate a Non Uniform Rational B-Spline curve...
static vpImagePoint computeCurvePoint(double l_u, unsigned int l_i, unsigned int l_p, std::vector< double > &l_knots, std::vector< vpImagePoint > &l_controlPoints)