UsTK : Ultrasound ToolKit  version 2.0.1 under development (2023-12-07)
usGeometryTools Namespace Reference

Functions

VISP_EXPORT double getPointPlaneDistance (const vpColVector &point, const usOrientedPlane3D &plane)
 
VISP_EXPORT bool IsPointInFrontOfPlane (const vpColVector &point, const usOrientedPlane3D &plane)
 
VISP_EXPORT bool DoesSegmentCrossPlane (const usPolynomialCurve3D &poly, const usOrientedPlane3D &plane)
 
VISP_EXPORT bool DoesSegmentCrossPlane (const usBSpline3D &spline, const usOrientedPlane3D &plane)
 
VISP_EXPORT bool DoesSegmentCrossPlaneDirect (const usPolynomialCurve3D &poly, const usOrientedPlane3D &plane)
 
VISP_EXPORT bool DoesSegmentCrossPlaneDirect (const usBSpline3D &spline, const usOrientedPlane3D &plane)
 
VISP_EXPORT vpColVector getPlaneCurveCrossingPoint (const usPolynomialCurve3D &poly, const usOrientedPlane3D &plane, double threshold, double *t=nullptr)
 
VISP_EXPORT vpColVector getPlaneCurveCrossingPoint (const usBSpline3D &spline, const usOrientedPlane3D &plane, double threshold, double *t=nullptr)
 
VISP_EXPORT vpColVector projectPointOnPlane (const vpColVector &point, const usOrientedPlane3D &plane, const vpColVector &direction=vpColVector())
 
VISP_EXPORT vpColVector projectPointOnCurve (const vpColVector &point, const usPolynomialCurve3D &poly, double threshold=-1, double *t=nullptr)
 
VISP_EXPORT vpColVector projectPointOnCurve (const vpColVector &point, const usBSpline3D &spline, double threshold=-1, int *index=nullptr, double *t=nullptr)
 
VISP_EXPORT usOrientedPlane3D getNormalPlane (const usPolynomialCurve3D &p, double l)
 
VISP_EXPORT usPolynomialCurve3D convertBSplineToPolynomial (const usBSpline3D &spline, int order)
 
VISP_EXPORT usBSpline3D convertPolynomialToBSpline (const usPolynomialCurve3D &poly, int nbSegments, int order)
 
VISP_EXPORT vpPoseVector findPointCloudRelativePose (std::vector< vpColVector > &P1, std::vector< vpColVector > &P2, double *res=nullptr)
 
VISP_EXPORT vpTranslationVector findPointCloudRelativePosition (std::vector< vpColVector > &P1, std::vector< vpColVector > &P2, const vpRotationMatrix &worldRprobe, double *res=nullptr)
 
VISP_EXPORT vpRotationMatrix findPointCloudRelativeRotation (std::vector< vpColVector > &P1, std::vector< vpColVector > &P2, double *res=nullptr)
 
VISP_EXPORT vpPoseVector ICPPointCloudRelativePose (std::vector< vpColVector > &P1, std::vector< vpColVector > &P2, double *res=nullptr, vpPoseVector *initialGuess=nullptr)
 
VISP_EXPORT vpTranslationVector ICPPointCloudRelativePosition (std::vector< vpColVector > &P1, std::vector< vpColVector > &P2, const vpRotationMatrix &worldRprobe, double *res=nullptr, vpTranslationVector *initialGuess=nullptr)
 
VISP_EXPORT vpRotationMatrix ICPPointCloudRelativeRotation (std::vector< vpColVector > &P1, std::vector< vpColVector > &P2, double *res=nullptr, vpRotationMatrix *initialGuess=nullptr)
 
VISP_EXPORT bool fitCircleTo2DPointCloud (const std::vector< vpColVector > &points, vpColVector &center, double &r)
 
VISP_EXPORT bool fitSphereTo3DPointCloud (const std::vector< vpColVector > &points, vpColVector &center, double &r)
 

Function Documentation

◆ convertBSplineToPolynomial()

usPolynomialCurve3D usGeometryTools::convertBSplineToPolynomial ( const usBSpline3D spline,
int  order 
)

◆ convertPolynomialToBSpline()

usBSpline3D usGeometryTools::convertPolynomialToBSpline ( const usPolynomialCurve3D poly,
int  nbSegments,
int  order 
)

◆ DoesSegmentCrossPlane() [1/2]

bool usGeometryTools::DoesSegmentCrossPlane ( const usBSpline3D spline,
const usOrientedPlane3D plane 
)

◆ DoesSegmentCrossPlane() [2/2]

◆ DoesSegmentCrossPlaneDirect() [1/2]

bool usGeometryTools::DoesSegmentCrossPlaneDirect ( const usBSpline3D spline,
const usOrientedPlane3D plane 
)

◆ DoesSegmentCrossPlaneDirect() [2/2]

◆ findPointCloudRelativePose()

vpPoseVector usGeometryTools::findPointCloudRelativePose ( std::vector< vpColVector > &  P1,
std::vector< vpColVector > &  P2,
double *  res = nullptr 
)

Definition at line 332 of file usGeometryTools.cpp.

Referenced by ICPPointCloudRelativePose().

◆ findPointCloudRelativePosition()

vpTranslationVector usGeometryTools::findPointCloudRelativePosition ( std::vector< vpColVector > &  P1,
std::vector< vpColVector > &  P2,
const vpRotationMatrix &  worldRprobe,
double *  res = nullptr 
)

Definition at line 387 of file usGeometryTools.cpp.

◆ findPointCloudRelativeRotation()

vpRotationMatrix usGeometryTools::findPointCloudRelativeRotation ( std::vector< vpColVector > &  P1,
std::vector< vpColVector > &  P2,
double *  res = nullptr 
)

Definition at line 419 of file usGeometryTools.cpp.

◆ fitCircleTo2DPointCloud()

bool usGeometryTools::fitCircleTo2DPointCloud ( const std::vector< vpColVector > &  points,
vpColVector &  center,
double &  r 
)

Definition at line 551 of file usGeometryTools.cpp.

◆ fitSphereTo3DPointCloud()

bool usGeometryTools::fitSphereTo3DPointCloud ( const std::vector< vpColVector > &  points,
vpColVector &  center,
double &  r 
)

Definition at line 591 of file usGeometryTools.cpp.

◆ getNormalPlane()

usOrientedPlane3D usGeometryTools::getNormalPlane ( const usPolynomialCurve3D p,
double  l 
)

◆ getPlaneCurveCrossingPoint() [1/2]

vpColVector usGeometryTools::getPlaneCurveCrossingPoint ( const usBSpline3D spline,
const usOrientedPlane3D plane,
double  threshold,
double *  t = nullptr 
)

◆ getPlaneCurveCrossingPoint() [2/2]

◆ getPointPlaneDistance()

◆ ICPPointCloudRelativePose()

vpPoseVector usGeometryTools::ICPPointCloudRelativePose ( std::vector< vpColVector > &  P1,
std::vector< vpColVector > &  P2,
double *  res = nullptr,
vpPoseVector *  initialGuess = nullptr 
)

Definition at line 460 of file usGeometryTools.cpp.

References findPointCloudRelativePose().

◆ ICPPointCloudRelativePosition()

vpTranslationVector usGeometryTools::ICPPointCloudRelativePosition ( std::vector< vpColVector > &  P1,
std::vector< vpColVector > &  P2,
const vpRotationMatrix &  worldRprobe,
double *  res = nullptr,
vpTranslationVector *  initialGuess = nullptr 
)

Definition at line 527 of file usGeometryTools.cpp.

◆ ICPPointCloudRelativeRotation()

vpRotationMatrix usGeometryTools::ICPPointCloudRelativeRotation ( std::vector< vpColVector > &  P1,
std::vector< vpColVector > &  P2,
double *  res = nullptr,
vpRotationMatrix *  initialGuess = nullptr 
)

Definition at line 540 of file usGeometryTools.cpp.

◆ IsPointInFrontOfPlane()

◆ projectPointOnCurve() [1/2]

vpColVector usGeometryTools::projectPointOnCurve ( const vpColVector &  point,
const usBSpline3D spline,
double  threshold = -1,
int *  index = nullptr,
double *  t = nullptr 
)

◆ projectPointOnCurve() [2/2]

vpColVector usGeometryTools::projectPointOnCurve ( const vpColVector &  point,
const usPolynomialCurve3D poly,
double  threshold = -1,
double *  t = nullptr 
)

◆ projectPointOnPlane()