8 #ifndef META_OCEAN_GEOMETRY_VANISHING_PROJECTION_H
9 #define META_OCEAN_GEOMETRY_VANISHING_PROJECTION_H
This class implements a base class for all indexed-based accessors allowing a constant reference acce...
Definition: Accessor.h:241
This class implements functions for vanishing projections.
Definition: VanishingProjection.h:30
static Indices32 perspectiveParallelLines(const ConstIndexedAccessor< Line2 > &lines, const Scalar projectiveParallelAngle=Numeric::deg2rad(5), const Scalar orientationError=Numeric::deg2rad(2), const Scalar maximalAngle=Numeric::deg2rad(35))
Determines the largest subset of perspectively parallel lines from a set of given infinite lines.
static bool vanishingLine(const Vector2 parallelogramPoints[4], Line2 &line)
Determines the vanishing line for four given (undistorted) image points defining a parallelogram that...
static bool planeNormal(const PinholeCamera &pinholeCamera, const Vector2 parallelogramPoints[4], const bool undistortImagePoints, Vector3 &normal)
Calculates the normal of a plane that is determined by four given image points defining a parallelogr...
This class implements an infinite line in 2D space.
Definition: Line2.h:83
static constexpr T deg2rad(const T deg)
Converts deg to rad.
Definition: Numeric.h:3232
std::vector< Index32 > Indices32
Definition of a vector holding 32 bit index values.
Definition: Base.h:96
float Scalar
Definition of a scalar type.
Definition: Math.h:128
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15