8 #ifndef META_OCEAN_GEOMETRY_PNP_H
9 #define META_OCEAN_GEOMETRY_PNP_H
72 static bool calculateResultant(
const Scalar cos12,
const Scalar cos13,
const Scalar cos23,
const Scalar d12_2,
const Scalar d13_2,
const Scalar d23_2,
Scalar& a0,
Scalar& a1,
Scalar& a2,
Scalar& a3,
Scalar& a4);
94 static bool calculateResultantOptimized(
const Scalar cos12,
const Scalar cos13,
const Scalar cos23,
const Scalar d12_2,
const Scalar d13_2,
const Scalar d23_2,
Scalar& a0,
Scalar& a1,
Scalar& a2,
Scalar& a3,
Scalar& a4);
This class implements the abstract base class for all AnyCamera objects.
Definition: AnyCamera.h:130
This class is the base class for all perspective pose classes.
Definition: PerspectivePose.h:27
This class provides functions determining the camera's pose based on at least five 3D object and corr...
Definition: PnP.h:27
static bool calculateResultant(const Scalar cos12, const Scalar cos13, const Scalar cos23, const Scalar d12_2, const Scalar d13_2, const Scalar d23_2, Scalar &a0, Scalar &a1, Scalar &a2, Scalar &a3, Scalar &a4)
Calculates the eighth degree polynomial resulting from three law of cosine polynomials.
static bool calculatePointDistances(const Vector3 *objectPoints, const Vector3 *imageRays, const size_t correspondences, Scalars &distances)
Calculates distances between camera center and at least five 3D object points.
static bool calculateResultantOptimized(const Scalar cos12, const Scalar cos13, const Scalar cos23, const Scalar d12_2, const Scalar d13_2, const Scalar d23_2, Scalar &a0, Scalar &a1, Scalar &a2, Scalar &a3, Scalar &a4)
Calculates the eighth degree polynomial resulting from three law of cosine polynomials.
static bool pose(const AnyCamera &camera, const Vector3 *objectPoints, const Vector2 *imagePoints, const size_t correspondences, HomogenousMatrix4 &world_T_camera)
Calculates the pose of a camera by a set of at least five image and object points.
float Scalar
Definition of a scalar type.
Definition: Math.h:128
std::vector< Scalar > Scalars
Definition of a vector holding Scalar objects.
Definition: Math.h:144
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15