UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)

#include <visp3/ustk_core/usPolynomialCurve2D.h>

Public Member Functions

 usPolynomialCurve2D ()
 
 usPolynomialCurve2D (const usPolynomialCurve2D &curve)
 
const usPolynomialCurve2Doperator= (const usPolynomialCurve2D &curve)
 
virtual ~usPolynomialCurve2D ()
 
 usPolynomialCurve2D (unsigned int order)
 
void setOrder (unsigned int order)
 
unsigned int getOrder () const
 
void setStartParameter (double startParameter)
 
double getStartParameter () const
 
void setEndParameter (double endParameter)
 
double getEndParameter () const
 
void setBoundaries (double startParameter, double endParamter)
 
void setParametricLength (double length)
 
double getParametricLength () const
 
void setLength (double length, double precision=1e-4)
 
double getLength (int nbCountSeg=50) const
 
void setPolynomialCoefficients (const vpMatrix &polynomialCoefficients)
 
vpMatrix getPolynomialCoefficients () const
 
vpColVector getPoint (double parameter) const
 
vpMatrix getPoints (vpColVector parameters) const
 
vpColVector getStartPoint () const
 
vpColVector getEndPoint () const
 
vpColVector getTangent (double parameter) const
 
vpColVector getStartTangent () const
 
vpColVector getEndTangent () const
 
vpColVector getDerivative (double parameter, unsigned int order) const
 
void defineFromPoints (const std::vector< vpColVector > &points, const std::vector< double > &param, unsigned int order=0)
 
void defineFromPoints (const vpMatrix points, const vpColVector &param, unsigned int order=0)
 
void defineFromPointsAuto (const std::vector< vpColVector > &points, unsigned int order=0)
 
void defineFromPointsAuto (const vpMatrix &points, unsigned int order=0)
 
void defineFromPointsAuto (const std::vector< vpColVector > &points, const vpColVector &direction, unsigned int order=0)
 
void defineFromPointsAuto (const vpMatrix &points, const vpColVector &direction, unsigned int order=0)
 
void defineFromWeightedPoints (const std::vector< vpColVector > &points, const std::vector< double > &param, const std::vector< double > &weights, unsigned int order=0)
 
void defineFromWeightedPoints (const vpMatrix &points, const vpColVector &param, const vpColVector &weights, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const std::vector< vpColVector > &points, const std::vector< double > &weights, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const vpMatrix &points, const vpColVector &weights, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const std::vector< vpColVector > &points, const std::vector< double > &weights, const vpColVector &direction, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const vpMatrix &points, const vpColVector &weights, const vpColVector &direction, unsigned int order=0)
 
double getCurvature (double param) const
 
double getMeanAxisDeviation (int nbCountSeg=50) const
 
void setControlPoints (const vpMatrix &controlPoints)
 
void setControlPoints (double **controlPoints)
 
vpMatrix getControlPoints () const
 
vpMatrix getRenderingPoints () const
 
usPolynomialCurve2D getSubPolynomialCurve (double startParameter, double endParameter) const
 
usPolynomialCurve2D getNewOrderPolynomialCurve (unsigned int order) const
 
void changeCoefficientsToFitBoundaries (double startParameter, double endParameter)
 
void reverse ()
 
void changeCoefficientsToFitMetricLength ()
 
void move (double x, double y, double tz)
 
void scale (double s)
 

Static Public Member Functions

static double curveDistance (const usPolynomialCurve2D &n1, const usPolynomialCurve2D &n2)
 

Protected Attributes

unsigned int m_order
 
double m_startParameter
 
double m_endParameter
 
vpMatrix m_polynomialCoefficients
 

Friends

VISP_EXPORT std::ostream & operator<< (std::ostream &s, const usPolynomialCurve2D &seg)
 
VISP_EXPORT std::istream & operator>> (std::istream &s, usPolynomialCurve2D &seg)
 
VISP_EXPORT std::ostream & operator<<= (std::ostream &s, const usPolynomialCurve2D &seg)
 
VISP_EXPORT std::istream & operator>>= (std::istream &s, usPolynomialCurve2D &seg)
 

Detailed Description

2D curve model

This class represents a 2D polynomial curve.

Examples
testUsGeometryDisplayTools.cpp, and testUsPolynomialCurve2D.cpp.

Definition at line 51 of file usPolynomialCurve2D.h.

Constructor & Destructor Documentation

◆ usPolynomialCurve2D() [1/3]

usPolynomialCurve2D::usPolynomialCurve2D ( )

Default constructor. Requires a call to setOrder().

Definition at line 40 of file usPolynomialCurve2D.cpp.

◆ usPolynomialCurve2D() [2/3]

usPolynomialCurve2D::usPolynomialCurve2D ( const usPolynomialCurve2D curve)

Copy constructor.

Definition at line 45 of file usPolynomialCurve2D.cpp.

◆ ~usPolynomialCurve2D()

usPolynomialCurve2D::~usPolynomialCurve2D ( )
virtual

Destructor.

Definition at line 61 of file usPolynomialCurve2D.cpp.

◆ usPolynomialCurve2D() [3/3]

usPolynomialCurve2D::usPolynomialCurve2D ( unsigned int  order)

Constructor.

Parameters
orderThe order of the polynomial curve.

Definition at line 63 of file usPolynomialCurve2D.cpp.

Member Function Documentation

◆ changeCoefficientsToFitBoundaries()

void usPolynomialCurve2D::changeCoefficientsToFitBoundaries ( double  startParameter,
double  endParameter 
)

Modify the polynomial coefficients such that the parametric variable now goes from two different boundaries, without changing the shape of the curve in space.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1064 of file usPolynomialCurve2D.cpp.

References m_endParameter, m_order, m_polynomialCoefficients, and m_startParameter.

Referenced by changeCoefficientsToFitMetricLength(), and reverse().

◆ changeCoefficientsToFitMetricLength()

void usPolynomialCurve2D::changeCoefficientsToFitMetricLength ( )

Modify the polynomial coefficients such that the metric length of the curve corresponds to the parametric length.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1108 of file usPolynomialCurve2D.cpp.

References changeCoefficientsToFitBoundaries(), getLength(), m_endParameter, m_startParameter, and setBoundaries().

◆ curveDistance()

double usPolynomialCurve2D::curveDistance ( const usPolynomialCurve2D n1,
const usPolynomialCurve2D n2 
)
static

Compute the distance between two curves. (to remove)

Definition at line 1022 of file usPolynomialCurve2D.cpp.

References getOrder(), and getPolynomialCoefficients().

◆ defineFromPoints() [1/2]

void usPolynomialCurve2D::defineFromPoints ( const std::vector< vpColVector > &  points,
const std::vector< double > &  param,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsPolynomialCurve2D.cpp.

Definition at line 279 of file usPolynomialCurve2D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

Referenced by defineFromPointsAuto().

◆ defineFromPoints() [2/2]

void usPolynomialCurve2D::defineFromPoints ( const vpMatrix  points,
const vpColVector &  param,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 338 of file usPolynomialCurve2D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

◆ defineFromPointsAuto() [1/4]

void usPolynomialCurve2D::defineFromPointsAuto ( const std::vector< vpColVector > &  points,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of weighted control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 453 of file usPolynomialCurve2D.cpp.

References defineFromPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromPointsAuto() [2/4]

void usPolynomialCurve2D::defineFromPointsAuto ( const std::vector< vpColVector > &  points,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsGeometryDisplayTools.cpp, and testUsPolynomialCurve2D.cpp.

Definition at line 396 of file usPolynomialCurve2D.cpp.

References m_order.

Referenced by defineFromPointsAuto(), and setControlPoints().

◆ defineFromPointsAuto() [3/4]

void usPolynomialCurve2D::defineFromPointsAuto ( const vpMatrix &  points,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 502 of file usPolynomialCurve2D.cpp.

References defineFromPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromPointsAuto() [4/4]

void usPolynomialCurve2D::defineFromPointsAuto ( const vpMatrix &  points,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 425 of file usPolynomialCurve2D.cpp.

References defineFromPointsAuto(), and m_order.

◆ defineFromWeightedPoints() [1/2]

void usPolynomialCurve2D::defineFromWeightedPoints ( const std::vector< vpColVector > &  points,
const std::vector< double > &  param,
const std::vector< double > &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of weighted control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsPolynomialCurve2D.cpp.

Definition at line 552 of file usPolynomialCurve2D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

Referenced by defineFromWeightedPointsAuto().

◆ defineFromWeightedPoints() [2/2]

void usPolynomialCurve2D::defineFromWeightedPoints ( const vpMatrix &  points,
const vpColVector &  param,
const vpColVector &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of weighted control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 616 of file usPolynomialCurve2D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

◆ defineFromWeightedPointsAuto() [1/4]

void usPolynomialCurve2D::defineFromWeightedPointsAuto ( const std::vector< vpColVector > &  points,
const std::vector< double > &  weights,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 823 of file usPolynomialCurve2D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromWeightedPointsAuto() [2/4]

void usPolynomialCurve2D::defineFromWeightedPointsAuto ( const std::vector< vpColVector > &  points,
const std::vector< double > &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsPolynomialCurve2D.cpp.

Definition at line 677 of file usPolynomialCurve2D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromWeightedPointsAuto() [3/4]

void usPolynomialCurve2D::defineFromWeightedPointsAuto ( const vpMatrix &  points,
const vpColVector &  weights,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 882 of file usPolynomialCurve2D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromWeightedPointsAuto() [4/4]

void usPolynomialCurve2D::defineFromWeightedPointsAuto ( const vpMatrix &  points,
const vpColVector &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 749 of file usPolynomialCurve2D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ getControlPoints()

vpMatrix usPolynomialCurve2D::getControlPoints ( ) const

Get the control points. (to remove)

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 996 of file usPolynomialCurve2D.cpp.

References getParametricLength(), getPoints(), getStartPoint(), m_order, and m_startParameter.

Referenced by usNeedleTrackerSIR2D::run().

◆ getCurvature()

double usPolynomialCurve2D::getCurvature ( double  param) const

Get the curvature of the curve at a specific point.

Parameters
paramParametric value where the curvature should be computed.
Examples
testUsPolynomialCurve2D.cpp.

Definition at line 940 of file usPolynomialCurve2D.cpp.

References getDerivative().

◆ getDerivative()

vpColVector usPolynomialCurve2D::getDerivative ( double  parameter,
unsigned int  order 
) const

Get the derivative of the polynmial curve at a given parametric value.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 258 of file usPolynomialCurve2D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by getCurvature().

◆ getEndParameter()

double usPolynomialCurve2D::getEndParameter ( ) const

Get the ending value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 145 of file usPolynomialCurve2D.cpp.

References m_endParameter.

Referenced by usGeometryDisplayTools::display().

◆ getEndPoint()

vpColVector usPolynomialCurve2D::getEndPoint ( ) const

Get the ending extremity of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 240 of file usPolynomialCurve2D.cpp.

References getPoint(), and m_endParameter.

◆ getEndTangent()

vpColVector usPolynomialCurve2D::getEndTangent ( ) const

Get the tangent vector at the starting extremity of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 256 of file usPolynomialCurve2D.cpp.

References getTangent(), and m_endParameter.

◆ getLength()

double usPolynomialCurve2D::getLength ( int  nbCountSeg = 50) const

◆ getMeanAxisDeviation()

double usPolynomialCurve2D::getMeanAxisDeviation ( int  nbCountSeg = 50) const

Get the mean deviation of the polynomial with respect to the straight axis between the two extremities.

Parameters
nbCountSegnumber of segments used to approximate the deviation.
Examples
testUsPolynomialCurve2D.cpp.

Definition at line 951 of file usPolynomialCurve2D.cpp.

References getParametricLength(), getPoints(), and m_startParameter.

◆ getNewOrderPolynomialCurve()

usPolynomialCurve2D usPolynomialCurve2D::getNewOrderPolynomialCurve ( unsigned int  order) const

Get new curve with new polynomial order.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1055 of file usPolynomialCurve2D.cpp.

References setOrder().

Referenced by usNeedleTrackerSIR2D::run().

◆ getOrder()

unsigned int usPolynomialCurve2D::getOrder ( ) const

Get the order of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 137 of file usPolynomialCurve2D.cpp.

References m_order.

Referenced by curveDistance(), and usNeedleTrackerSIR2D::init().

◆ getParametricLength()

double usPolynomialCurve2D::getParametricLength ( ) const

Get the length of the curve in the parametric variable space.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 161 of file usPolynomialCurve2D.cpp.

References m_endParameter, and m_startParameter.

Referenced by defineFromPointsAuto(), defineFromWeightedPointsAuto(), getControlPoints(), getLength(), getMeanAxisDeviation(), getRenderingPoints(), and setLength().

◆ getPoint()

vpColVector usPolynomialCurve2D::getPoint ( double  parameter) const

Get the polynomial curve point at a given parametric value.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 218 of file usPolynomialCurve2D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by usNeedleTrackerSIR2D::computeLikelihood(), getEndPoint(), getStartPoint(), and usNeedleTrackerSIR2D::init().

◆ getPoints()

vpMatrix usPolynomialCurve2D::getPoints ( vpColVector  parameters) const

Get the polynomial curve points at given parametric values.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 227 of file usPolynomialCurve2D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by usGeometryDisplayTools::display(), getControlPoints(), getLength(), getMeanAxisDeviation(), and getRenderingPoints().

◆ getPolynomialCoefficients()

vpMatrix usPolynomialCurve2D::getPolynomialCoefficients ( ) const

Get the polynomial coefficients.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 216 of file usPolynomialCurve2D.cpp.

References m_polynomialCoefficients.

Referenced by curveDistance().

◆ getRenderingPoints()

vpMatrix usPolynomialCurve2D::getRenderingPoints ( ) const

Get the rendering points. (to remove)

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1010 of file usPolynomialCurve2D.cpp.

References getParametricLength(), getPoints(), m_order, and m_startParameter.

◆ getStartParameter()

double usPolynomialCurve2D::getStartParameter ( ) const

Get the starting value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 141 of file usPolynomialCurve2D.cpp.

References m_startParameter.

Referenced by usGeometryDisplayTools::display().

◆ getStartPoint()

vpColVector usPolynomialCurve2D::getStartPoint ( ) const

Get the starting extremity of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 238 of file usPolynomialCurve2D.cpp.

References getPoint(), and m_startParameter.

Referenced by getControlPoints().

◆ getStartTangent()

vpColVector usPolynomialCurve2D::getStartTangent ( ) const

Get the tangent vector at the starting extremity of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 254 of file usPolynomialCurve2D.cpp.

References getTangent(), and m_startParameter.

◆ getSubPolynomialCurve()

usPolynomialCurve2D usPolynomialCurve2D::getSubPolynomialCurve ( double  startParameter,
double  endParameter 
) const

Get new curve starting at different parametric coefficients .

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1046 of file usPolynomialCurve2D.cpp.

References setBoundaries().

◆ getTangent()

vpColVector usPolynomialCurve2D::getTangent ( double  parameter) const

Get the tangent vector at a given parametric value.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 242 of file usPolynomialCurve2D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by getEndTangent(), getStartTangent(), and usNeedleTrackerSIR2D::run().

◆ move()

void usPolynomialCurve2D::move ( double  x,
double  y,
double  tz 
)

Apply an homogeneous transformation to the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1115 of file usPolynomialCurve2D.cpp.

References m_polynomialCoefficients.

◆ operator=()

const usPolynomialCurve2D & usPolynomialCurve2D::operator= ( const usPolynomialCurve2D curve)

Assignment operator.

Definition at line 51 of file usPolynomialCurve2D.cpp.

References m_endParameter, m_order, m_polynomialCoefficients, and m_startParameter.

◆ reverse()

void usPolynomialCurve2D::reverse ( )

Invert the direction of displacement along the curve with respect to the parametric variable.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1106 of file usPolynomialCurve2D.cpp.

References changeCoefficientsToFitBoundaries(), m_endParameter, and m_startParameter.

Referenced by setBoundaries().

◆ scale()

void usPolynomialCurve2D::scale ( double  s)

Scale the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 1133 of file usPolynomialCurve2D.cpp.

References m_polynomialCoefficients.

◆ setBoundaries()

void usPolynomialCurve2D::setBoundaries ( double  startParameter,
double  endParamter 
)

Set the starting and ending values of the parametric variable of the polynomial curve. If the starting value is higher than the ending value, these values are inverted as well as the direction of displacement along the curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 147 of file usPolynomialCurve2D.cpp.

References m_endParameter, m_startParameter, and reverse().

Referenced by changeCoefficientsToFitMetricLength(), defineFromPoints(), defineFromWeightedPoints(), and getSubPolynomialCurve().

◆ setControlPoints() [1/2]

void usPolynomialCurve2D::setControlPoints ( const vpMatrix &  controlPoints)

Set the control points. The input matrix has to be of size 2xn, where n is the order of the polynomial curve.

Parameters
controlPointsReference to the desired control points.
Examples
testUsPolynomialCurve2D.cpp.

Definition at line 975 of file usPolynomialCurve2D.cpp.

References defineFromPointsAuto().

Referenced by usNeedleTrackerSIR2D::run(), and setControlPoints().

◆ setControlPoints() [2/2]

void usPolynomialCurve2D::setControlPoints ( double **  controlPoints)

Set the control points.

Definition at line 989 of file usPolynomialCurve2D.cpp.

References m_order, and setControlPoints().

◆ setEndParameter()

void usPolynomialCurve2D::setEndParameter ( double  endParameter)

Set the ending value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 143 of file usPolynomialCurve2D.cpp.

References m_endParameter.

◆ setLength()

void usPolynomialCurve2D::setLength ( double  length,
double  precision = 1e-4 
)

Set the curve length in metric space.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 163 of file usPolynomialCurve2D.cpp.

References getLength(), getParametricLength(), and m_endParameter.

◆ setOrder()

void usPolynomialCurve2D::setOrder ( unsigned int  order)

Change the order of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 68 of file usPolynomialCurve2D.cpp.

References m_endParameter, m_order, m_polynomialCoefficients, and m_startParameter.

Referenced by getNewOrderPolynomialCurve().

◆ setParametricLength()

void usPolynomialCurve2D::setParametricLength ( double  length)

Set the length of the curve in the parametric variable space.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 159 of file usPolynomialCurve2D.cpp.

References m_endParameter, and m_startParameter.

◆ setPolynomialCoefficients()

void usPolynomialCurve2D::setPolynomialCoefficients ( const vpMatrix &  polynomialCoefficients)

Set the curve polynomial coefficients.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 203 of file usPolynomialCurve2D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by defineFromPoints(), and defineFromWeightedPoints().

◆ setStartParameter()

void usPolynomialCurve2D::setStartParameter ( double  startParameter)

Set the starting value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve2D.cpp.

Definition at line 139 of file usPolynomialCurve2D.cpp.

References m_startParameter.

Friends And Related Function Documentation

◆ operator<<

VISP_EXPORT std::ostream& operator<< ( std::ostream &  s,
const usPolynomialCurve2D seg 
)
friend

Data saving.

Text

Definition at line 1135 of file usPolynomialCurve2D.cpp.

◆ operator<<=

VISP_EXPORT std::ostream& operator<<= ( std::ostream &  s,
const usPolynomialCurve2D seg 
)
friend

Binary.

Definition at line 1170 of file usPolynomialCurve2D.cpp.

◆ operator>>

VISP_EXPORT std::istream& operator>> ( std::istream &  s,
usPolynomialCurve2D seg 
)
friend

Definition at line 1150 of file usPolynomialCurve2D.cpp.

◆ operator>>=

VISP_EXPORT std::istream& operator>>= ( std::istream &  s,
usPolynomialCurve2D seg 
)
friend

Definition at line 1183 of file usPolynomialCurve2D.cpp.

Member Data Documentation

◆ m_endParameter

◆ m_order

◆ m_polynomialCoefficients

vpMatrix usPolynomialCurve2D::m_polynomialCoefficients
protected

◆ m_startParameter