Describes a 3D sphere object.
More...
#include <sphere.h>
Describes a 3D sphere object.
Sphere descritpion
Definition at line 72 of file sphere.h.
◆ Sphere()
| Sphere::Sphere |
( |
const Eigen::Vector3f & | center, |
|
|
float | radius ) |
◆ center()
| Eigen::Vector3f & UTILSLIB::Sphere::center |
( |
| ) |
|
|
inline |
The radius of the sphere.
- Returns
- the fitted sphere.
Definition at line 112 of file sphere.h.
◆ fit_sphere()
| Sphere Sphere::fit_sphere |
( |
const Eigen::MatrixX3f & | points | ) |
|
|
static |
Fits a sphere to a point cloud. Algorithm by Alan Jennings, University of Dayton
- Parameters
-
| [in] | points | n x 3 matrix of cartesian data to fit the sphere to. |
- Returns
- the fitted sphere.
Definition at line 72 of file sphere.cpp.
◆ fit_sphere_simplex()
| Sphere Sphere::fit_sphere_simplex |
( |
const Eigen::MatrixX3f & | points, |
|
|
double | simplex_size = 2e-2 ) |
|
static |
Fits a sphere to a point cloud.
- Parameters
-
| [in] | points | n x 3 matrix of cartesian data to fit the sphere to. |
| [in] | simplex_size | The simplex size. |
- Returns
- the fitted sphere.
Definition at line 112 of file sphere.cpp.
◆ fit_sphere_to_points() [1/2]
| bool UTILSLIB::Sphere::fit_sphere_to_points |
( |
const Eigen::MatrixXf & | rr, |
|
|
float | simplex_size, |
|
|
Eigen::VectorXf & | r0, |
|
|
float & | R ) |
|
static |
Fits a sphere to a point cloud.
- Parameters
-
| [in] | rr | n x 3 matrix of cartesian data to fit the sphere to. |
| [in] | simplex_size | The simplex size. |
| [out] | r0 | center (1 x 3 matrix) of the sphere. |
| [out] | R | Radius. |
- Returns
- true if successful.
◆ fit_sphere_to_points() [2/2]
| bool Sphere::fit_sphere_to_points |
( |
float ** | rr, |
|
|
int | np, |
|
|
float | simplex_size, |
|
|
float * | r0, |
|
|
float * | R ) |
|
static |
◆ radius()
| float & UTILSLIB::Sphere::radius |
( |
| ) |
|
|
inline |
The radius of the sphere.
- Returns
- the fitted sphere.
Definition at line 120 of file sphere.h.
The documentation for this class was generated from the following files: